iter_identity is a better name

This commit is contained in:
Michael Goulet
2024-07-06 11:54:22 -04:00
parent 289deb9ed7
commit 58aad3c72c
11 changed files with 26 additions and 37 deletions

View File

@@ -298,9 +298,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedResults {
ty::Alias(ty::Opaque | ty::Projection, ty::AliasTy { def_id: def, .. }) => {
elaborate(
cx.tcx,
cx.tcx
.explicit_item_super_predicates(def)
.instantiate_identity_iter_copied(),
cx.tcx.explicit_item_super_predicates(def).iter_identity_copied(),
)
// We only care about self bounds for the impl-trait
.filter_only_self()