@@ -695,7 +695,7 @@ trait InferCtxtExt<'tcx> {
695695 value : T ,
696696 ) -> T
697697 where
698- T : TypeFoldable < ' tcx > ;
698+ T : TypeFoldable < TyCtxt < ' tcx > > ;
699699
700700 fn replace_bound_regions_with_nll_infer_vars < T > (
701701 & self ,
@@ -705,7 +705,7 @@ trait InferCtxtExt<'tcx> {
705705 indices : & mut UniversalRegionIndices < ' tcx > ,
706706 ) -> T
707707 where
708- T : TypeFoldable < ' tcx > ;
708+ T : TypeFoldable < TyCtxt < ' tcx > > ;
709709
710710 fn replace_late_bound_regions_with_nll_infer_vars_in_recursive_scope (
711711 & self ,
@@ -727,7 +727,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
727727 value : T ,
728728 ) -> T
729729 where
730- T : TypeFoldable < ' tcx > ,
730+ T : TypeFoldable < TyCtxt < ' tcx > > ,
731731 {
732732 self . tcx . fold_regions ( value, |_region, _depth| self . next_nll_region_var ( origin) )
733733 }
@@ -741,7 +741,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
741741 indices : & mut UniversalRegionIndices < ' tcx > ,
742742 ) -> T
743743 where
744- T : TypeFoldable < ' tcx > ,
744+ T : TypeFoldable < TyCtxt < ' tcx > > ,
745745 {
746746 let ( value, _map) = self . tcx . replace_late_bound_regions ( value, |br| {
747747 debug ! ( ?br) ;
@@ -833,7 +833,7 @@ impl<'tcx> UniversalRegionIndices<'tcx> {
833833 /// returned by `to_region_vid`.
834834 pub fn fold_to_region_vids < T > ( & self , tcx : TyCtxt < ' tcx > , value : T ) -> T
835835 where
836- T : TypeFoldable < ' tcx > ,
836+ T : TypeFoldable < TyCtxt < ' tcx > > ,
837837 {
838838 tcx. fold_regions ( value, |region, _| tcx. mk_region ( ty:: ReVar ( self . to_region_vid ( region) ) ) )
839839 }
0 commit comments