1
Fork 0

Don't delay ReError bug during lexical region resolve

This commit is contained in:
Michael Goulet 2023-02-17 18:25:47 +00:00
parent f722b24eb9
commit 90cf0cc6c2
3 changed files with 38 additions and 1 deletions

View file

@ -1046,7 +1046,7 @@ impl<'tcx> LexicalRegionResolutions<'tcx> {
ty::ReVar(rid) => match self.values[rid] {
VarValue::Empty(_) => r,
VarValue::Value(r) => r,
VarValue::ErrorValue => tcx.mk_re_error_misc(),
VarValue::ErrorValue => tcx.lifetimes.re_static,
},
_ => r,
};