aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-visitor.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-12-28 15:58:41 -0500
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-21 12:56:56 +0100
commit76565cabf2842b7dff20f4a3cbe2808fec7d15da (patch)
tree44036f231a733e6fa2e0efc0d6455bfd5a6a3665 /gcc/rust/ast/rust-ast-visitor.cc
parent5b7583c68aa4ec1b51d83f892744ffa44ec4a605 (diff)
downloadgcc-76565cabf2842b7dff20f4a3cbe2808fec7d15da.zip
gcc-76565cabf2842b7dff20f4a3cbe2808fec7d15da.tar.gz
gcc-76565cabf2842b7dff20f4a3cbe2808fec7d15da.tar.bz2
gccrs: Visit the trait paths of trait implementations
gcc/rust/ChangeLog: * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): When visiting a TraitImpl, visit its trait path. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove entries. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-visitor.cc')
-rw-r--r--gcc/rust/ast/rust-ast-visitor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-visitor.cc b/gcc/rust/ast/rust-ast-visitor.cc
index 32e8025..d10ca6c 100644
--- a/gcc/rust/ast/rust-ast-visitor.cc
+++ b/gcc/rust/ast/rust-ast-visitor.cc
@@ -1039,6 +1039,7 @@ DefaultASTVisitor::visit (AST::TraitImpl &impl)
if (impl.has_where_clause ())
visit (impl.get_where_clause ());
visit (impl.get_type ());
+ visit (impl.get_trait_path ());
visit_inner_attrs (impl);
for (auto &item : impl.get_impl_items ())
visit (item);