@@ -465,7 +465,7 @@ struct RemapLateBound<'a, 'tcx> {
465465}
466466
467467impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateBound < ' _ , ' tcx > {
468- fn tcx ( & self ) -> TyCtxt < ' tcx > {
468+ fn interner ( & self ) -> TyCtxt < ' tcx > {
469469 self . tcx
470470 }
471471
@@ -830,13 +830,13 @@ impl<'a, 'tcx> ImplTraitInTraitCollector<'a, 'tcx> {
830830}
831831
832832impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for ImplTraitInTraitCollector < ' _ , ' tcx > {
833- fn tcx < ' a > ( & ' a self ) -> TyCtxt < ' tcx > {
833+ fn interner ( & self ) -> TyCtxt < ' tcx > {
834834 self . ocx . infcx . tcx
835835 }
836836
837837 fn fold_ty ( & mut self , ty : Ty < ' tcx > ) -> Ty < ' tcx > {
838838 if let ty:: Alias ( ty:: Projection , proj) = ty. kind ( )
839- && self . tcx ( ) . def_kind ( proj. def_id ) == DefKind :: ImplTraitPlaceholder
839+ && self . interner ( ) . def_kind ( proj. def_id ) == DefKind :: ImplTraitPlaceholder
840840 {
841841 if let Some ( ( ty, _) ) = self . types . get ( & proj. def_id ) {
842842 return * ty;
@@ -852,7 +852,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx> {
852852 } ) ;
853853 self . types . insert ( proj. def_id , ( infer_ty, proj. substs ) ) ;
854854 // Recurse into bounds
855- for ( pred, pred_span) in self . tcx ( ) . bound_explicit_item_bounds ( proj. def_id ) . subst_iter_copied ( self . tcx ( ) , proj. substs ) {
855+ for ( pred, pred_span) in self . interner ( ) . bound_explicit_item_bounds ( proj. def_id ) . subst_iter_copied ( self . interner ( ) , proj. substs ) {
856856 let pred = pred. fold_with ( self ) ;
857857 let pred = self . ocx . normalize (
858858 & ObligationCause :: misc ( self . span , self . body_id ) ,
@@ -861,7 +861,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx> {
861861 ) ;
862862
863863 self . ocx . register_obligation ( traits:: Obligation :: new (
864- self . tcx ( ) ,
864+ self . interner ( ) ,
865865 ObligationCause :: new (
866866 self . span ,
867867 self . body_id ,
0 commit comments