From 40b154e53c0e04ff4cfd40d43d8e2b86b143b763 Mon Sep 17 00:00:00 2001 From: lcnr Date: Fri, 17 Nov 2023 09:29:48 +0000 Subject: rename bound region instantiation - `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased` - `replace_late_bound_regions_X` -> `instantiate_bound_regions_X` --- compiler/rustc_hir_analysis/src/collect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_hir_analysis') diff --git a/compiler/rustc_hir_analysis/src/collect.rs b/compiler/rustc_hir_analysis/src/collect.rs index 1e75b863165..7b5b049d254 100644 --- a/compiler/rustc_hir_analysis/src/collect.rs +++ b/compiler/rustc_hir_analysis/src/collect.rs @@ -440,7 +440,7 @@ impl<'tcx> AstConv<'tcx> for ItemCtxt<'tcx> { second: format!( "{}::", // Replace the existing lifetimes with a new named lifetime. - self.tcx.replace_late_bound_regions_uncached( + self.tcx.instantiate_bound_regions_uncached( poly_trait_ref, |_| { ty::Region::new_early_param(self.tcx, ty::EarlyParamRegion { -- cgit 1.4.1-3-g733a5