Don't delay ReError bug during lexical region resolve
This commit is contained in:
parent
f722b24eb9
commit
90cf0cc6c2
3 changed files with 38 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue