diff options
| author | lcnr <rust@lcnr.de> | 2023-11-17 09:29:48 +0000 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-11-17 09:29:48 +0000 |
| commit | 40b154e53c0e04ff4cfd40d43d8e2b86b143b763 (patch) | |
| tree | 5900fa11398c7cba1b9e2362fcefa79cc44c7879 /compiler/rustc_hir_analysis | |
| parent | 41cfb20abb1b33af6a1294cd09cdb1203249bd23 (diff) | |
| download | rust-40b154e53c0e04ff4cfd40d43d8e2b86b143b763.tar.gz rust-40b154e53c0e04ff4cfd40d43d8e2b86b143b763.zip | |
rename bound region instantiation
- `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased` - `replace_late_bound_regions_X` -> `instantiate_bound_regions_X`
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
