diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-06-26 15:40:45 -0400 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-09-08 20:55:55 -0400 |
| commit | 1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4 (patch) | |
| tree | 1dfc3c24565deb51caebc3acc00391267d444a5d /compiler/rustc_traits/src | |
| parent | dd0335a27f03c0b654c49d188e122c3a0776c6a3 (diff) | |
| download | rust-1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4.tar.gz rust-1ca9eb8ec3bcf8860d08a4e92f0eb8ebbf112fc4.zip | |
Remove ReEmpty
Diffstat (limited to 'compiler/rustc_traits/src')
| -rw-r--r-- | compiler/rustc_traits/src/chalk/lowering.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_traits/src/chalk/lowering.rs b/compiler/rustc_traits/src/chalk/lowering.rs index a166371fed1..a6a098ce73f 100644 --- a/compiler/rustc_traits/src/chalk/lowering.rs +++ b/compiler/rustc_traits/src/chalk/lowering.rs @@ -485,10 +485,6 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::Lifetime<RustInterner<'tcx>>> for Region<'t }) .intern(interner) } - ty::ReEmpty(ui) => { - chalk_ir::LifetimeData::Empty(chalk_ir::UniverseIndex { counter: ui.index() }) - .intern(interner) - } ty::ReErased => chalk_ir::LifetimeData::Erased.intern(interner), } } @@ -510,8 +506,8 @@ impl<'tcx> LowerInto<'tcx, Region<'tcx>> for &chalk_ir::Lifetime<RustInterner<'t name: ty::BoundRegionKind::BrAnon(p.idx as u32), }), chalk_ir::LifetimeData::Static => return interner.tcx.lifetimes.re_static, - chalk_ir::LifetimeData::Empty(ui) => { - ty::ReEmpty(ty::UniverseIndex::from_usize(ui.counter)) + chalk_ir::LifetimeData::Empty(_) => { + bug!("Chalk should not have been passed an empty lifetime.") } chalk_ir::LifetimeData::Erased => return interner.tcx.lifetimes.re_erased, chalk_ir::LifetimeData::Phantom(void, _) => match *void {}, |
