Create closure outside of the loop
This commit is contained in:
parent
89bc399d56
commit
f499601dd8
1 changed files with 4 additions and 4 deletions
|
@ -953,8 +953,8 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
for item in trait_items {
|
|
||||||
this.with_trait_items(trait_items, |this| {
|
this.with_trait_items(trait_items, |this| {
|
||||||
|
for item in trait_items {
|
||||||
match &item.kind {
|
match &item.kind {
|
||||||
AssocItemKind::Const(_, ty, default) => {
|
AssocItemKind::Const(_, ty, default) => {
|
||||||
this.visit_ty(ty);
|
this.visit_ty(ty);
|
||||||
|
@ -983,10 +983,10 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
|
||||||
panic!("unexpanded macro in resolve!")
|
panic!("unexpanded macro in resolve!")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemKind::TraitAlias(ref generics, ref bounds) => {
|
ItemKind::TraitAlias(ref generics, ref bounds) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue