1
Fork 0

Mir borrowck does not generate lifetime variables for 'static lifetimes during opaque type resolution

This commit is contained in:
Oli Scherer 2021-07-26 14:59:26 +00:00
parent fc24bcead1
commit 2953a2fb18
2 changed files with 74 additions and 0 deletions

View file

@ -83,6 +83,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
.and_then(|ur_vid| self.definitions[*ur_vid].external_name)
.unwrap_or(infcx.tcx.lifetimes.re_root_empty),
ty::ReLateBound(..) => region,
ty::ReStatic => region,
_ => {
infcx.tcx.sess.delay_span_bug(
span,