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/hir | |
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/hir')
-rw-r--r-- | gcc/rust/hir/tree/rust-hir.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/hir/tree/rust-hir.cc b/gcc/rust/hir/tree/rust-hir.cc index de1c825..a84a741 100644 --- a/gcc/rust/hir/tree/rust-hir.cc +++ b/gcc/rust/hir/tree/rust-hir.cc @@ -2173,7 +2173,7 @@ PathPattern::convert_to_simple_path (bool with_opening_scope_resolution) const } // kind of a HACK to get locus depending on opening scope resolution - Location locus = Linemap::unknown_location (); + Location locus = UNKNOWN_LOCATION; if (with_opening_scope_resolution) { locus = simple_segments[0].get_locus () - 2; // minus 2 chars for :: |