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 2, 2025
1 parent 5b35fc7 commit 0447e23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 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
36 changes: 0 additions & 36 deletions gcc/testsuite/rust/compile/nr2/exclude
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ 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
Expand All @@ -27,7 +26,6 @@ derive_macro6.rs
expected_type_args2.rs
expected_type_args3.rs
feature_rust_attri0.rs
for_lifetimes.rs
format_args_basic_expansion.rs
generic-default1.rs
generics1.rs
Expand All @@ -41,10 +39,8 @@ generics6.rs
generics8.rs
generics9.rs
if_let_expr.rs
issue-1019.rs
issue-1031.rs
issue-1034.rs
issue-1129-2.rs
issue-1130.rs
issue-1165.rs
issue-1173.rs
Expand All @@ -59,25 +55,13 @@ 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-2105.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 @@ -88,11 +72,9 @@ issue-2812.rs
issue-850.rs
issue-852.rs
issue-855.rs
issue-925.rs
iterators1.rs
lookup_err1.rs
macros/mbe/macro-issue1233.rs
macros/mbe/macro-issue1400.rs
macros/mbe/macro13.rs
macros/mbe/macro15.rs
macros/mbe/macro23.rs
Expand Down Expand Up @@ -121,7 +103,6 @@ nested_generic.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 @@ -146,17 +127,10 @@ redef_error6.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 @@ -165,27 +139,17 @@ 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 Down

0 comments on commit 0447e23

Please sign in to comment.