diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-13 13:44:56 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-15 09:02:44 +1100 |
| commit | 74390283748ca1478bb6958a2a81d9b94dade2b6 (patch) | |
| tree | 2f943bd80128c5384846aae0e99d47907d17f59e /compiler/rustc_middle/src/ty/fold.rs | |
| parent | 6e0115778b0aedc90b59e035476c38e1b8c5c29b (diff) | |
| download | rust-74390283748ca1478bb6958a2a81d9b94dade2b6.tar.gz rust-74390283748ca1478bb6958a2a81d9b94dade2b6.zip | |
Remove `reuse_or_mk_region`.
It's not used on any hot paths, and so has little perf benefit, and it interferes with the optimizations in the following commits.
Diffstat (limited to 'compiler/rustc_middle/src/ty/fold.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/fold.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/fold.rs b/compiler/rustc_middle/src/ty/fold.rs index 352daa8fc29..13db1239059 100644 --- a/compiler/rustc_middle/src/ty/fold.rs +++ b/compiler/rustc_middle/src/ty/fold.rs @@ -234,7 +234,7 @@ where // debruijn index. Then we adjust it to the // correct depth. assert_eq!(debruijn1, ty::INNERMOST); - self.tcx.reuse_or_mk_region(region, ty::ReLateBound(debruijn, br)) + self.tcx.mk_region(ty::ReLateBound(debruijn, br)) } else { region } |
