@@ -151,8 +151,8 @@ pub(crate) fn type_check<'a, 'tcx>(
151151 body,
152152 promoted,
153153 user_type_annotations : & body. user_type_annotations ,
154- region_bound_pairs,
155- known_type_outlives_obligations,
154+ region_bound_pairs : & region_bound_pairs ,
155+ known_type_outlives_obligations : & known_type_outlives_obligations ,
156156 reported_errors : Default :: default ( ) ,
157157 universal_regions : & universal_region_relations. universal_regions ,
158158 location_table,
@@ -216,8 +216,8 @@ struct TypeChecker<'a, 'tcx> {
216216 /// User type annotations are shared between the main MIR and the MIR of
217217 /// all of the promoted items.
218218 user_type_annotations : & ' a CanonicalUserTypeAnnotations < ' tcx > ,
219- region_bound_pairs : RegionBoundPairs < ' tcx > ,
220- known_type_outlives_obligations : Vec < ty:: PolyTypeOutlivesPredicate < ' tcx > > ,
219+ region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
220+ known_type_outlives_obligations : & ' a [ ty:: PolyTypeOutlivesPredicate < ' tcx > ] ,
221221 reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
222222 universal_regions : & ' a UniversalRegions < ' tcx > ,
223223 location_table : & ' a PoloniusLocationTable ,
@@ -412,9 +412,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
412412 constraint_conversion:: ConstraintConversion :: new (
413413 self . infcx ,
414414 self . universal_regions ,
415- & self . region_bound_pairs ,
415+ self . region_bound_pairs ,
416416 self . infcx . param_env ,
417- & self . known_type_outlives_obligations ,
417+ self . known_type_outlives_obligations ,
418418 locations,
419419 locations. span ( self . body ) ,
420420 category,
@@ -2506,9 +2506,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
25062506 constraint_conversion:: ConstraintConversion :: new (
25072507 self . infcx ,
25082508 self . universal_regions ,
2509- & self . region_bound_pairs ,
2509+ self . region_bound_pairs ,
25102510 self . infcx . param_env ,
2511- & self . known_type_outlives_obligations ,
2511+ self . known_type_outlives_obligations ,
25122512 locations,
25132513 self . body . span , // irrelevant; will be overridden.
25142514 ConstraintCategory :: Boring , // same as above.
0 commit comments