@@ -465,7 +465,7 @@ struct RemapLateBound<'a, 'tcx> {
465
465
}
466
466
467
467
impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateBound < ' _ , ' tcx > {
468
- fn tcx ( & self ) -> TyCtxt < ' tcx > {
468
+ fn interner ( & self ) -> TyCtxt < ' tcx > {
469
469
self . tcx
470
470
}
471
471
@@ -830,13 +830,13 @@ impl<'a, 'tcx> ImplTraitInTraitCollector<'a, 'tcx> {
830
830
}
831
831
832
832
impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for ImplTraitInTraitCollector < ' _ , ' tcx > {
833
- fn tcx < ' a > ( & ' a self ) -> TyCtxt < ' tcx > {
833
+ fn interner ( & self ) -> TyCtxt < ' tcx > {
834
834
self . ocx . infcx . tcx
835
835
}
836
836
837
837
fn fold_ty ( & mut self , ty : Ty < ' tcx > ) -> Ty < ' tcx > {
838
838
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
840
840
{
841
841
if let Some ( ( ty, _) ) = self . types . get ( & proj. def_id ) {
842
842
return * ty;
@@ -852,7 +852,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx> {
852
852
} ) ;
853
853
self . types . insert ( proj. def_id , ( infer_ty, proj. substs ) ) ;
854
854
// 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 ) {
856
856
let pred = pred. fold_with ( self ) ;
857
857
let pred = self . ocx . normalize (
858
858
& ObligationCause :: misc ( self . span , self . body_id ) ,
@@ -861,7 +861,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx> {
861
861
) ;
862
862
863
863
self . ocx . register_obligation ( traits:: Obligation :: new (
864
- self . tcx ( ) ,
864
+ self . interner ( ) ,
865
865
ObligationCause :: new (
866
866
self . span ,
867
867
self . body_id ,
0 commit comments