Skip to content

Commit

Permalink
Visit the trait paths of trait implementations
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
powerboat9 committed Jan 8, 2025
1 parent 1eaf085 commit 6f6356c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
1 change: 1 addition & 0 deletions gcc/rust/ast/rust-ast-visitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
46 changes: 0 additions & 46 deletions gcc/testsuite/rust/compile/nr2/exclude
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@ cfg4.rs
cfg5.rs
closure_no_type_anno.rs
complex-path1.rs
complex_qualified_path_in_expr.rs
const-issue1440.rs
const_generics_3.rs
const_generics_4.rs
const_generics_5.rs
const_generics_7.rs
derive_empty.rs
derive_macro1.rs
derive_macro3.rs
derive_macro4.rs
derive_macro6.rs
expected_type_args2.rs
feature_rust_attri0.rs
for_lifetimes.rs
format_args_basic_expansion.rs
generic-default1.rs
generics1.rs
Expand All @@ -38,9 +33,6 @@ generics5.rs
generics6.rs
generics9.rs
if_let_expr.rs
issue-1019.rs
issue-1034.rs
issue-1129-2.rs
issue-1130.rs
issue-1173.rs
issue-1272.rs
Expand All @@ -52,24 +44,12 @@ issue-1786.rs
issue-1893.rs
issue-1901.rs
issue-1981.rs
issue-2019-1.rs
issue-2019-2.rs
issue-2019-3.rs
issue-2036.rs
issue-2037.rs
issue-2043.rs
issue-2070.rs
issue-2135.rs
issue-2136-1.rs
issue-2136-2.rs
issue-2139.rs
issue-2142.rs
issue-2165.rs
issue-2166.rs
issue-2238.rs
issue-2304.rs
issue-2330.rs
issue-2478.rs
issue-2479.rs
issue-2723-1.rs
issue-2723-2.rs
Expand All @@ -80,10 +60,8 @@ issue-2812.rs
issue-850.rs
issue-852.rs
issue-855.rs
issue-925.rs
iterators1.rs
lookup_err1.rs
macros/mbe/macro-issue1400.rs
macros/mbe/macro13.rs
macros/mbe/macro15.rs
macros/mbe/macro23.rs
Expand Down Expand Up @@ -111,7 +89,6 @@ name_resolution4.rs
nested_macro_use1.rs
nested_macro_use2.rs
nested_macro_use3.rs
non_member_const.rs
not_find_value_in_scope.rs
parse_associated_type_as_generic_arg.rs
parse_associated_type_as_generic_arg2.rs
Expand All @@ -135,17 +112,10 @@ redef_error5.rs
self-path1.rs
self-path2.rs
sizeof-stray-infer-var-bug.rs
stmt_with_block_dot.rs
struct-expr-parse.rs
traits1.rs
traits12.rs
traits2.rs
traits3.rs
traits4.rs
traits5.rs
traits6.rs
traits7.rs
traits8.rs
type-bindings1.rs
unconstrained_type_param.rs
undeclared_label.rs
Expand All @@ -154,27 +124,13 @@ use_2.rs
v0-mangle1.rs
v0-mangle2.rs
while_break_expr.rs
negative_impls.rs
exhaustiveness1.rs
exhaustiveness2.rs
exhaustiveness3.rs
trait13.rs
trait14.rs
issue-2324-1.rs
issue-2324-2.rs
issue-2987.rs
issue-3045-1.rs
issue-3045-2.rs
issue-3046.rs
issue-3030.rs
issue-3035.rs
issue-3139-1.rs
issue-3139-2.rs
issue-3139-3.rs
issue-3036.rs
issue-2951.rs
issue-2203.rs
issue-2499.rs
issue-3032-1.rs
issue-3032-2.rs
# https://github.com/Rust-GCC/gccrs/issues/3189
Expand All @@ -184,13 +140,11 @@ issue-3033.rs
issue-3009.rs
issue-2953-2.rs
issue-1773.rs
issue-2905-1.rs
issue-2905-2.rs
issue-2907.rs
issue-2423.rs
issue-266.rs
additional-trait-bounds2.rs
auto_traits2.rs
auto_traits3.rs
issue-3140.rs
cmp1.rs
Expand Down

0 comments on commit 6f6356c

Please sign in to comment.