]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/_match.rs
Rollup merge of #103253 - notriddle:notriddle/test-case-masked-blanket-impl, r=Mark...
[rust.git] / compiler / rustc_hir_typeck / src / _match.rs
index c22d828625bc85b0168ca10ec6a246899aeebf9f..2b15d4dcd084849def308fecfec0c8f668ebfd2d 100644 (file)
@@ -514,8 +514,11 @@ pub(crate) fn opt_suggest_box_span(
                 }
 
                 for ty in [first_ty, second_ty] {
-                    for pred in self.tcx.bound_explicit_item_bounds(rpit_def_id).transpose_iter() {
-                        let pred = pred.map_bound(|(pred, _)| *pred).subst(self.tcx, substs);
+                    for (pred, _) in self
+                        .tcx
+                        .bound_explicit_item_bounds(rpit_def_id)
+                        .subst_iter_copied(self.tcx, substs)
+                    {
                         let pred = match pred.kind().skip_binder() {
                             ty::PredicateKind::Trait(mut trait_pred) => {
                                 assert_eq!(trait_pred.trait_ref.self_ty(), opaque_ty);