iter_identity is a better name
This commit is contained in:
parent
289deb9ed7
commit
58aad3c72c
11 changed files with 26 additions and 37 deletions
|
@ -169,10 +169,8 @@ impl<'tcx> OpaqueTypeCollector<'tcx> {
|
|||
// Collect opaque types nested within the associated type bounds of this opaque type.
|
||||
// We use identity args here, because we already know that the opaque type uses
|
||||
// only generic parameters, and thus instantiating would not give us more information.
|
||||
for (pred, span) in self
|
||||
.tcx
|
||||
.explicit_item_bounds(alias_ty.def_id)
|
||||
.instantiate_identity_iter_copied()
|
||||
for (pred, span) in
|
||||
self.tcx.explicit_item_bounds(alias_ty.def_id).iter_identity_copied()
|
||||
{
|
||||
trace!(?pred);
|
||||
self.visit_spanned(span, pred);
|
||||
|
|
|
@ -62,7 +62,7 @@ pub fn walk_types<'tcx, V: SpannedTypeVisitor<'tcx>>(
|
|||
}
|
||||
}
|
||||
DefKind::OpaqueTy => {
|
||||
for (pred, span) in tcx.explicit_item_bounds(item).instantiate_identity_iter_copied() {
|
||||
for (pred, span) in tcx.explicit_item_bounds(item).iter_identity_copied() {
|
||||
try_visit!(visitor.visit(span, pred));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue