aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
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/rust-backend.h
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/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index ad497e4..179bda7 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -52,8 +52,7 @@ public:
tree type;
Location location;
- typed_identifier ()
- : name (), type (NULL_TREE), location (Linemap::unknown_location ())
+ typed_identifier () : name (), type (NULL_TREE), location (UNKNOWN_LOCATION)
{}
typed_identifier (const std::string &a_name, tree a_type,