@@ -809,7 +809,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
809
809
return ;
810
810
}
811
811
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) ;
813
813
814
814
let ( xform_self_ty, xform_ret_ty) =
815
815
this. xform_self_ty ( item, new_trait_ref. self_ty ( ) , new_trait_ref. args ) ;
@@ -1885,7 +1885,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
1885
1885
fn_sig. instantiate ( self . tcx , args)
1886
1886
} ;
1887
1887
1888
- self . erase_late_bound_regions ( xform_fn_sig)
1888
+ self . instantiate_bound_regions_with_erased ( xform_fn_sig)
1889
1889
}
1890
1890
1891
1891
/// Gets the type of an impl and generate substitutions with inference vars.
@@ -1897,7 +1897,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
1897
1897
}
1898
1898
1899
1899
/// Replaces late-bound-regions bound by `value` with `'static` using
1900
- /// `ty::erase_late_bound_regions `.
1900
+ /// `ty::instantiate_bound_regions_with_erased `.
1901
1901
///
1902
1902
/// This is only a reasonable thing to do during the *probe* phase, not the *confirm* phase, of
1903
1903
/// 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> {
1914
1914
/// region got replaced with the same variable, which requires a bit more coordination
1915
1915
/// and/or tracking the substitution and
1916
1916
/// 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
1918
1918
where
1919
1919
T : TypeFoldable < TyCtxt < ' tcx > > ,
1920
1920
{
1921
- self . tcx . erase_late_bound_regions ( value)
1921
+ self . tcx . instantiate_bound_regions_with_erased ( value)
1922
1922
}
1923
1923
1924
1924
/// Determine if the given associated item type is relevant in the current context.
0 commit comments