about summary refs log tree commit diff
path: root/compiler/rustc_traits/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-02-03 23:21:56 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-02-09 10:26:49 +0000
commit30cf7a3f51d6a25006077d3e9ec3222de3104b8d (patch)
treea5b0608d63e5e93341bb84afb3bf9030c1c0d6df /compiler/rustc_traits/src
parentc40919b7a75f93ed7ef040361e82c656d246d41e (diff)
downloadrust-30cf7a3f51d6a25006077d3e9ec3222de3104b8d.tar.gz
rust-30cf7a3f51d6a25006077d3e9ec3222de3104b8d.zip
Introduce `ReError`
CC #69314
Diffstat (limited to 'compiler/rustc_traits/src')
-rw-r--r--compiler/rustc_traits/src/chalk/lowering.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_traits/src/chalk/lowering.rs b/compiler/rustc_traits/src/chalk/lowering.rs
index 9c5db3314c5..05b201b9f99 100644
--- a/compiler/rustc_traits/src/chalk/lowering.rs
+++ b/compiler/rustc_traits/src/chalk/lowering.rs
@@ -493,6 +493,9 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::Lifetime<RustInterner<'tcx>>> for Region<'t
             ty::ReEarlyBound(_) => {
                 panic!("Should have already been substituted.");
             }
+            ty::ReError => {
+                panic!("Error lifetime should not have already been lowered.");
+            }
             ty::ReLateBound(db, br) => chalk_ir::LifetimeData::BoundVar(chalk_ir::BoundVar::new(
                 chalk_ir::DebruijnIndex::new(db.as_u32()),
                 br.var.as_usize(),