diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-03 13:48:45 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:35 +0100 |
commit | e5f3ad0fa1955dc83b59d46a92a76507ee3855a2 (patch) | |
tree | 5f47e2ab0791a0edbff1f1a6f7c731de0aaf4114 /gcc/rust/rust-diagnostics.cc | |
parent | c84a5c616cdad17a3470e02f20d0caa8743f340f (diff) | |
download | gcc-e5f3ad0fa1955dc83b59d46a92a76507ee3855a2.zip gcc-e5f3ad0fa1955dc83b59d46a92a76507ee3855a2.tar.gz gcc-e5f3ad0fa1955dc83b59d46a92a76507ee3855a2.tar.bz2 |
gccrs: Replace Linemap::unknown_location with UNKNOWN_LOCATION
gcc/rust/ChangeLog:
* rust-linemap.h (Linemap::unknown_location): Remove.
* ast/rust-ast.cc:
Replace Linemap::unknown_location with UNKNOWN_LOCATION.
* ast/rust-path.cc: Likewise.
* hir/tree/rust-hir.cc: Likewise.
* metadata/rust-imports.cc: Likewise.
* parse/rust-parse-impl.h: Likewise.
* parse/rust-parse.h: Likewise.
* rust-backend.h: Likewise.
* rust-diagnostics.cc: Likewise.
* rust-session-manager.cc: Likewise.
* typecheck/rust-tyty.cc: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-diagnostics.cc')
-rw-r--r-- | gcc/rust/rust-diagnostics.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-diagnostics.cc b/gcc/rust/rust-diagnostics.cc index c6e7099..6c74546 100644 --- a/gcc/rust/rust-diagnostics.cc +++ b/gcc/rust/rust-diagnostics.cc @@ -119,7 +119,7 @@ expand_message (const char *fmt, va_list ap) if (nwr == -1) { // memory allocation failed - rust_be_error_at (Linemap::unknown_location (), + rust_be_error_at (UNKNOWN_LOCATION, "memory allocation failed in vasprintf"); rust_assert (0); } @@ -323,7 +323,7 @@ rust_debug_loc (const Location location, const char *fmt, ...) va_end (ap); if (nwr == -1) { - rust_be_error_at (Linemap::unknown_location (), + rust_be_error_at (UNKNOWN_LOCATION, "memory allocation failed in vasprintf"); rust_assert (0); } |