]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/infer/canonical.rs
Rollup merge of #103929 - BlackHoleFox:apple-targets-cleanup, r=petrochenkov
[rust.git] / compiler / rustc_middle / src / infer / canonical.rs
index 8d1ed4b2a5228d4a82560676f93f400e7f7ea757..0331d764b38a1469bcdf81dc65129478167f5978 100644 (file)
@@ -336,8 +336,10 @@ pub fn make_identity(&self, tcx: TyCtxt<'tcx>) -> Self {
                         tcx.mk_ty(ty::Bound(ty::INNERMOST, ty::BoundVar::from_u32(i).into())).into()
                     }
                     GenericArgKind::Lifetime(..) => {
-                        let br =
-                            ty::BoundRegion { var: ty::BoundVar::from_u32(i), kind: ty::BrAnon(i) };
+                        let br = ty::BoundRegion {
+                            var: ty::BoundVar::from_u32(i),
+                            kind: ty::BrAnon(i, None),
+                        };
                         tcx.mk_region(ty::ReLateBound(ty::INNERMOST, br)).into()
                     }
                     GenericArgKind::Const(ct) => tcx