@@ -151,8 +151,8 @@ pub(crate) fn type_check<'a, 'tcx>(
151
151
body,
152
152
promoted,
153
153
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 ,
156
156
reported_errors : Default :: default ( ) ,
157
157
universal_regions : & universal_region_relations. universal_regions ,
158
158
location_table,
@@ -216,8 +216,8 @@ struct TypeChecker<'a, 'tcx> {
216
216
/// User type annotations are shared between the main MIR and the MIR of
217
217
/// all of the promoted items.
218
218
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 > ] ,
221
221
reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
222
222
universal_regions : & ' a UniversalRegions < ' tcx > ,
223
223
location_table : & ' a PoloniusLocationTable ,
@@ -412,9 +412,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
412
412
constraint_conversion:: ConstraintConversion :: new (
413
413
self . infcx ,
414
414
self . universal_regions ,
415
- & self . region_bound_pairs ,
415
+ self . region_bound_pairs ,
416
416
self . infcx . param_env ,
417
- & self . known_type_outlives_obligations ,
417
+ self . known_type_outlives_obligations ,
418
418
locations,
419
419
locations. span ( self . body ) ,
420
420
category,
@@ -2506,9 +2506,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
2506
2506
constraint_conversion:: ConstraintConversion :: new (
2507
2507
self . infcx ,
2508
2508
self . universal_regions ,
2509
- & self . region_bound_pairs ,
2509
+ self . region_bound_pairs ,
2510
2510
self . infcx . param_env ,
2511
- & self . known_type_outlives_obligations ,
2511
+ self . known_type_outlives_obligations ,
2512
2512
locations,
2513
2513
self . body . span , // irrelevant; will be overridden.
2514
2514
ConstraintCategory :: Boring , // same as above.
0 commit comments