@@ -397,7 +397,7 @@ struct RemapLateBound<'a, 'tcx> {
397397}
398398
399399impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateBound < ' _ , ' tcx > {
400- fn interner ( & self ) -> TyCtxt < ' tcx > {
400+ fn cx ( & self ) -> TyCtxt < ' tcx > {
401401 self . tcx
402402 }
403403
@@ -790,13 +790,13 @@ impl<'tcx, E> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx, E
790790where
791791 E : ' tcx ,
792792{
793- fn interner ( & self ) -> TyCtxt < ' tcx > {
793+ fn cx ( & self ) -> TyCtxt < ' tcx > {
794794 self . ocx . infcx . tcx
795795 }
796796
797797 fn fold_ty ( & mut self , ty : Ty < ' tcx > ) -> Ty < ' tcx > {
798798 if let ty:: Alias ( ty:: Projection , proj) = ty. kind ( )
799- && self . interner ( ) . is_impl_trait_in_trait ( proj. def_id )
799+ && self . cx ( ) . is_impl_trait_in_trait ( proj. def_id )
800800 {
801801 if let Some ( ( ty, _) ) = self . types . get ( & proj. def_id ) {
802802 return * ty;
@@ -810,9 +810,9 @@ where
810810 self . types . insert ( proj. def_id , ( infer_ty, proj. args ) ) ;
811811 // Recurse into bounds
812812 for ( pred, pred_span) in self
813- . interner ( )
813+ . cx ( )
814814 . explicit_item_bounds ( proj. def_id )
815- . iter_instantiated_copied ( self . interner ( ) , proj. args )
815+ . iter_instantiated_copied ( self . cx ( ) , proj. args )
816816 {
817817 let pred = pred. fold_with ( self ) ;
818818 let pred = self . ocx . normalize (
@@ -822,7 +822,7 @@ where
822822 ) ;
823823
824824 self . ocx . register_obligation ( traits:: Obligation :: new (
825- self . interner ( ) ,
825+ self . cx ( ) ,
826826 ObligationCause :: new (
827827 self . span ,
828828 self . body_id ,
@@ -853,7 +853,7 @@ struct RemapHiddenTyRegions<'tcx> {
853853impl < ' tcx > ty:: FallibleTypeFolder < TyCtxt < ' tcx > > for RemapHiddenTyRegions < ' tcx > {
854854 type Error = ErrorGuaranteed ;
855855
856- fn interner ( & self ) -> TyCtxt < ' tcx > {
856+ fn cx ( & self ) -> TyCtxt < ' tcx > {
857857 self . tcx
858858 }
859859
@@ -2072,7 +2072,7 @@ struct ReplaceTy<'tcx> {
20722072}
20732073
20742074impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for ReplaceTy < ' tcx > {
2075- fn interner ( & self ) -> TyCtxt < ' tcx > {
2075+ fn cx ( & self ) -> TyCtxt < ' tcx > {
20762076 self . tcx
20772077 }
20782078
0 commit comments