diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-06-26 12:01:05 -0400 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-09-08 17:57:34 -0400 |
| commit | e7e5feb637ca0e130f2890800da054771410d321 (patch) | |
| tree | 88756ded9b6a2fe8d347179f338380aa6f7dd608 /compiler/rustc_middle | |
| parent | f29c91bf1245fc01853b0f1d8913139b3b355f63 (diff) | |
| download | rust-e7e5feb637ca0e130f2890800da054771410d321.tar.gz rust-e7e5feb637ca0e130f2890800da054771410d321.zip | |
In ReverseMapper, don't fallback to ReEmpty, instead ReStatic
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 53e91e48c24..afb2d5b2ba5 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -276,9 +276,6 @@ pub struct CommonTypes<'tcx> { } pub struct CommonLifetimes<'tcx> { - /// `ReEmpty` in the root universe. - pub re_root_empty: Region<'tcx>, - /// `ReStatic` pub re_static: Region<'tcx>, @@ -987,11 +984,7 @@ impl<'tcx> CommonLifetimes<'tcx> { )) }; - CommonLifetimes { - re_root_empty: mk(ty::ReEmpty(ty::UniverseIndex::ROOT)), - re_static: mk(ty::ReStatic), - re_erased: mk(ty::ReErased), - } + CommonLifetimes { re_static: mk(ty::ReStatic), re_erased: mk(ty::ReErased) } } } |
