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_mir_build/src/thir | |
| 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_mir_build/src/thir')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/cx/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/thir/cx/mod.rs b/compiler/rustc_mir_build/src/thir/cx/mod.rs index bcd9140f0e1..261bd30b94a 100644 --- a/compiler/rustc_mir_build/src/thir/cx/mod.rs +++ b/compiler/rustc_mir_build/src/thir/cx/mod.rs @@ -135,7 +135,7 @@ impl<'tcx> Cx<'tcx> { let env_region = ty::Region::new_bound(self.tcx, ty::INNERMOST, br); let closure_env_ty = self.tcx.closure_env_ty(closure_def_id, closure_args, env_region).unwrap(); - let liberated_closure_env_ty = self.tcx.erase_late_bound_regions( + let liberated_closure_env_ty = self.tcx.instantiate_bound_regions_with_erased( ty::Binder::bind_with_vars(closure_env_ty, bound_vars), ); let env_param = Param { |
