@@ -809,7 +809,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
809809 return ;
810810 }
811811
812- let new_trait_ref = this. erase_late_bound_regions ( new_trait_ref) ;
812+ let new_trait_ref = this. instantiate_bound_regions_with_erased ( new_trait_ref) ;
813813
814814 let ( xform_self_ty, xform_ret_ty) =
815815 this. xform_self_ty ( item, new_trait_ref. self_ty ( ) , new_trait_ref. args ) ;
@@ -1885,7 +1885,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
18851885 fn_sig. instantiate ( self . tcx , args)
18861886 } ;
18871887
1888- self . erase_late_bound_regions ( xform_fn_sig)
1888+ self . instantiate_bound_regions_with_erased ( xform_fn_sig)
18891889 }
18901890
18911891 /// Gets the type of an impl and generate substitutions with inference vars.
@@ -1897,7 +1897,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
18971897 }
18981898
18991899 /// Replaces late-bound-regions bound by `value` with `'static` using
1900- /// `ty::erase_late_bound_regions `.
1900+ /// `ty::instantiate_bound_regions_with_erased `.
19011901 ///
19021902 /// This is only a reasonable thing to do during the *probe* phase, not the *confirm* phase, of
19031903 /// method matching. It is reasonable during the probe phase because we don't consider region
@@ -1914,11 +1914,11 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
19141914 /// region got replaced with the same variable, which requires a bit more coordination
19151915 /// and/or tracking the substitution and
19161916 /// so forth.
1917- fn erase_late_bound_regions < T > ( & self , value : ty:: Binder < ' tcx , T > ) -> T
1917+ fn instantiate_bound_regions_with_erased < T > ( & self , value : ty:: Binder < ' tcx , T > ) -> T
19181918 where
19191919 T : TypeFoldable < TyCtxt < ' tcx > > ,
19201920 {
1921- self . tcx . erase_late_bound_regions ( value)
1921+ self . tcx . instantiate_bound_regions_with_erased ( value)
19221922 }
19231923
19241924 /// Determine if the given associated item type is relevant in the current context.
0 commit comments