Resolve names in the generics of impl associated types
This commit is contained in:
parent
db6d0b1638
commit
c5028f686d
1 changed files with 2 additions and 3 deletions
|
|
@ -1119,7 +1119,7 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
|
|||
|
||||
visit::walk_impl_item(this, impl_item);
|
||||
}
|
||||
AssocItemKind::TyAlias(_, Some(ref ty)) => {
|
||||
AssocItemKind::TyAlias(_, _) => {
|
||||
// If this is a trait impl, ensure the type
|
||||
// exists in trait
|
||||
this.check_trait_item(impl_item.ident,
|
||||
|
|
@ -1127,9 +1127,8 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
|
|||
impl_item.span,
|
||||
|n, s| TypeNotMemberOfTrait(n, s));
|
||||
|
||||
this.visit_ty(ty);
|
||||
visit::walk_impl_item(this, impl_item);
|
||||
}
|
||||
AssocItemKind::TyAlias(_, None) => {}
|
||||
AssocItemKind::Macro(_) =>
|
||||
panic!("unexpanded macro in resolve!"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue