https://gcc.gnu.org/g:64d4e0f1e587d167f7734acad8dbf48be1e33fa3

commit 64d4e0f1e587d167f7734acad8dbf48be1e33fa3
Author: Arthur Cohen <arthur.co...@embecosm.com>
Date:   Wed Apr 9 14:44:11 2025 +0200

    ast: Add get_locus() to DelimTokenTree
    
    gcc/rust/ChangeLog:
    
            * ast/rust-ast.h (DelimTokenTree::get_locus): New function.

Diff:
---
 gcc/rust/ast/rust-ast.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index 71facfff2671..3f41034a7317 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -1018,6 +1018,7 @@ public:
   }
 
   DelimType get_delim_type () const { return delim_type; }
+  location_t get_locus () const { return locus; }
 };
 
 /* Forward decl - definition moved to rust-expr.h as it requires LiteralExpr

Reply via email to