Skip to content

Commit c5028f6

Browse files
committed
Resolve names in the generics of impl associated types
1 parent db6d0b1 commit c5028f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_resolve/late.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,17 +1119,16 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
11191119

11201120
visit::walk_impl_item(this, impl_item);
11211121
}
1122-
AssocItemKind::TyAlias(_, Some(ref ty)) => {
1122+
AssocItemKind::TyAlias(_, _) => {
11231123
// If this is a trait impl, ensure the type
11241124
// exists in trait
11251125
this.check_trait_item(impl_item.ident,
11261126
TypeNS,
11271127
impl_item.span,
11281128
|n, s| TypeNotMemberOfTrait(n, s));
11291129

1130-
this.visit_ty(ty);
1130+
visit::walk_impl_item(this, impl_item);
11311131
}
1132-
AssocItemKind::TyAlias(_, None) => {}
11331132
AssocItemKind::Macro(_) =>
11341133
panic!("unexpanded macro in resolve!"),
11351134
}

0 commit comments

Comments
 (0)