]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Make Attribute parent class Visitable public
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 18 Feb 2026 13:55:55 +0000 (14:55 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 20 Mar 2026 17:10:38 +0000 (18:10 +0100)
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

index 2185f4b031f675ed16643396d6b24f21d554bd96..47587a162d4d2f7a7aa71cfbd64d3213adb71158 100644 (file)
@@ -566,7 +566,7 @@ protected:
 
 // aka Attr
 // Attribute AST representation
-class Attribute : Visitable
+class Attribute : public Visitable
 {
   SimplePath path;