@@ -844,7 +844,7 @@ struct TypeChecker<'a, 'tcx> {
844844 /// all of the promoted items.
845845 user_type_annotations : & ' a CanonicalUserTypeAnnotations < ' tcx > ,
846846 region_bound_pairs : & ' a RegionBoundPairs < ' tcx > ,
847- known_type_outlives_obligations : & ' tcx [ ty:: PolyTypeOutlivesPredicate < ' tcx > ] ,
847+ known_type_outlives_obligations : Vec < ty:: PolyTypeOutlivesPredicate < ' tcx > > ,
848848 implicit_region_bound : ty:: Region < ' tcx > ,
849849 reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
850850 universal_regions : & ' a UniversalRegions < ' tcx > ,
@@ -1028,7 +1028,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10281028 self . region_bound_pairs ,
10291029 self . implicit_region_bound ,
10301030 self . param_env ,
1031- self . known_type_outlives_obligations ,
1031+ & self . known_type_outlives_obligations ,
10321032 locations,
10331033 locations. span ( self . body ) ,
10341034 category,
@@ -2790,7 +2790,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
27902790 self . region_bound_pairs ,
27912791 self . implicit_region_bound ,
27922792 self . param_env ,
2793- self . known_type_outlives_obligations ,
2793+ & self . known_type_outlives_obligations ,
27942794 locations,
27952795 self . body . span , // irrelevant; will be overridden.
27962796 ConstraintCategory :: Boring , // same as above.
0 commit comments