[COMMITTED 16/41] gccrs: Make Attribute parent class Visitable public
arthur.cohen@embecosm.com
arthur.cohen@embecosm.com
Fri Mar 20 17:30:05 GMT 2026
From: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
These changes allows interfacing with attributes as a Visitable node.
gcc/rust/ChangeLog:
* ast/rust-ast.h (class Attribute): Make visitable parent class public.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
---
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 2185f4b031f..47587a162d4 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -566,7 +566,7 @@ protected:
// aka Attr
// Attribute AST representation
-class Attribute : Visitable
+class Attribute : public Visitable
{
SimplePath path;
--
2.50.1
More information about the Gcc-rust
mailing list