Skip to content

Commit e6d5f25

Browse files
committed
Fix #57730
1 parent c1c3c4e commit e6d5f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_passes/ast_validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
519519
if let Some(ref type_) = data.output {
520520
// `-> Foo` syntax is essentially an associated type binding,
521521
// so it is also allowed to contain nested `impl Trait`.
522-
self.with_impl_trait(None, |this| visit::walk_ty(this, type_));
522+
self.with_impl_trait(None, |this| this.visit_ty(type_));
523523
}
524524
}
525525
}

0 commit comments

Comments
 (0)