@@ -162,7 +162,7 @@ pub(crate) fn type_check<'a, 'tcx>(
162162 last_span : body. span ,
163163 body,
164164 user_type_annotations : & body. user_type_annotations ,
165- region_bound_pairs : & region_bound_pairs ,
165+ region_bound_pairs,
166166 known_type_outlives_obligations,
167167 implicit_region_bound,
168168 reported_errors : Default :: default ( ) ,
@@ -843,7 +843,7 @@ struct TypeChecker<'a, 'tcx> {
843843 /// User type annotations are shared between the main MIR and the MIR of
844844 /// all of the promoted items.
845845 user_type_annotations : & ' a CanonicalUserTypeAnnotations < ' tcx > ,
846- region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
846+ region_bound_pairs : RegionBoundPairs < ' tcx > ,
847847 known_type_outlives_obligations : Vec < ty:: PolyTypeOutlivesPredicate < ' tcx > > ,
848848 implicit_region_bound : ty:: Region < ' tcx > ,
849849 reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
@@ -1025,7 +1025,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10251025 constraint_conversion:: ConstraintConversion :: new (
10261026 self . infcx ,
10271027 self . universal_regions ,
1028- self . region_bound_pairs ,
1028+ & self . region_bound_pairs ,
10291029 self . implicit_region_bound ,
10301030 self . param_env ,
10311031 & self . known_type_outlives_obligations ,
@@ -2787,7 +2787,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
27872787 constraint_conversion:: ConstraintConversion :: new (
27882788 self . infcx ,
27892789 self . universal_regions ,
2790- self . region_bound_pairs ,
2790+ & self . region_bound_pairs ,
27912791 self . implicit_region_bound ,
27922792 self . param_env ,
27932793 & self . known_type_outlives_obligations ,
0 commit comments