[gcc r15-8412] gccrs: Make node id getter const.
Arthur Cohen
cohenarthur@gcc.gnu.org
Wed Mar 19 14:43:42 GMT 2025
https://gcc.gnu.org/g:fb7e607d2f72efd0047f35afab34d5073db2451a
commit r15-8412-gfb7e607d2f72efd0047f35afab34d5073db2451a
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Thu Sep 26 22:46:16 2024 +0200
gccrs: Make node id getter const.
gcc/rust/ChangeLog:
* ast/rust-ast.h: Node id getter could be const.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diff:
---
gcc/rust/ast/rust-ast.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index f5a2e77af3f9..129a3041c7f1 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -1587,7 +1587,7 @@ public:
virtual Kind get_kind () const = 0;
- NodeId get_node_id () { return node_id; }
+ NodeId get_node_id () const { return node_id; }
protected:
GenericParam () : node_id (Analysis::Mappings::get ().get_next_node_id ()) {}
More information about the Gcc-cvs
mailing list