Mir borrowck does not generate lifetime variables for 'static lifetimes during opaque type resolution
This commit is contained in:
parent
fc24bcead1
commit
2953a2fb18
2 changed files with 74 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue