From: Pierre-Emmanuel Patry <[email protected]>
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 <[email protected]>
---
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