@@ -162,7 +162,7 @@ pub(crate) fn type_check<'a, 'tcx>(
162
162
last_span : body. span ,
163
163
body,
164
164
user_type_annotations : & body. user_type_annotations ,
165
- region_bound_pairs : & region_bound_pairs ,
165
+ region_bound_pairs,
166
166
known_type_outlives_obligations,
167
167
implicit_region_bound,
168
168
reported_errors : Default :: default ( ) ,
@@ -843,7 +843,7 @@ struct TypeChecker<'a, 'tcx> {
843
843
/// User type annotations are shared between the main MIR and the MIR of
844
844
/// all of the promoted items.
845
845
user_type_annotations : & ' a CanonicalUserTypeAnnotations < ' tcx > ,
846
- region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
846
+ region_bound_pairs : RegionBoundPairs < ' tcx > ,
847
847
known_type_outlives_obligations : Vec < ty:: PolyTypeOutlivesPredicate < ' tcx > > ,
848
848
implicit_region_bound : ty:: Region < ' tcx > ,
849
849
reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
@@ -1025,7 +1025,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
1025
1025
constraint_conversion:: ConstraintConversion :: new (
1026
1026
self . infcx ,
1027
1027
self . universal_regions ,
1028
- self . region_bound_pairs ,
1028
+ & self . region_bound_pairs ,
1029
1029
self . implicit_region_bound ,
1030
1030
self . param_env ,
1031
1031
& self . known_type_outlives_obligations ,
@@ -2785,7 +2785,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
2785
2785
constraint_conversion:: ConstraintConversion :: new (
2786
2786
self . infcx ,
2787
2787
self . universal_regions ,
2788
- self . region_bound_pairs ,
2788
+ & self . region_bound_pairs ,
2789
2789
self . implicit_region_bound ,
2790
2790
self . param_env ,
2791
2791
& self . known_type_outlives_obligations ,
0 commit comments