From: Pierre-Emmanuel Patry Date: Thu, 26 Sep 2024 20:46:16 +0000 (+0200) Subject: gccrs: Make node id getter const. X-Git-Tag: basepoints/gcc-16~1141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb7e607d2f72efd0047f35afab34d5073db2451a;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index f5a2e77af3f..129a3041c7f 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 ()) {}