From e99e565e0aa866cdec407f851d651096fb190f7f Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Mon, 10 Jul 2023 16:13:59 -0400 Subject: gccrs: Replace usages of Location with location_t in the lexer, AST, and HIR gcc/rust/ChangeLog: * ast/rust-ast-builder.h: Replace Location with location_t. * ast/rust-ast.h: Likewise. * ast/rust-expr.h: Likewise. * ast/rust-item.h: Likewise. * ast/rust-macro.h: Likewise. * ast/rust-path.h: Likewise. * hir/tree/rust-hir-expr.h: Likewise. * hir/tree/rust-hir-item.h: Likewise. * hir/tree/rust-hir-path.h: Likewise. * hir/tree/rust-hir.h: Likewise. * lex/rust-lex.cc: Likewise. * lex/rust-lex.h: Likewise. Signed-off-by: Owen Avery --- gcc/rust/hir/tree/rust-hir-path.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/rust/hir/tree/rust-hir-path.h') diff --git a/gcc/rust/hir/tree/rust-hir-path.h b/gcc/rust/hir/tree/rust-hir-path.h index 80456e8..b7644b8 100644 --- a/gcc/rust/hir/tree/rust-hir-path.h +++ b/gcc/rust/hir/tree/rust-hir-path.h @@ -1001,7 +1001,7 @@ public: bool is_error () const { return segments.empty (); } const Analysis::NodeMapping &get_mappings () const { return mappings; } - const Location &get_locus () const { return locus; } + location_t get_locus () const { return locus; } }; } // namespace HIR -- cgit v1.1