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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/271ba9a7974d67084569f77527377579b51f795f

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4425

 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 2185f4b03..47587a162 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.53.0

Reply via email to