aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-12-28 15:58:41 -0500
committerPhilip Herron <philip.herron@embecosm.com>2025-01-10 10:11:30 +0000
commitf68fbff016d4faacd54de63549d43255e1193688 (patch)
treef48b5132a1f7ed4d2657fbc6ed09face7b537f8d /gcc/rust/ast
parentc82a879f21b5a390e2760ea15dd974154dc102fd (diff)
downloadgcc-f68fbff016d4faacd54de63549d43255e1193688.zip
gcc-f68fbff016d4faacd54de63549d43255e1193688.tar.gz
gcc-f68fbff016d4faacd54de63549d43255e1193688.tar.bz2
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')
-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 7c5117d..228f81a 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);