aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-03 13:48:45 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:49:35 +0100
commite5f3ad0fa1955dc83b59d46a92a76507ee3855a2 (patch)
tree5f47e2ab0791a0edbff1f1a6f7c731de0aaf4114 /gcc/rust/hir
parentc84a5c616cdad17a3470e02f20d0caa8743f340f (diff)
downloadgcc-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.cc2
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 ::