]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/borrow_check/region_infer/opaque_types.rs
Mir borrowck does not generate lifetime variables for 'static lifetimes during opaque...
[rust.git] / compiler / rustc_mir / src / borrow_check / region_infer / opaque_types.rs
index f2d69255d50ffb0f64a77f52b566c280c3bdcfb1..e9ab62e1664f972778fa884a8b46a9f53f6f62cd 100644 (file)
@@ -83,6 +83,7 @@ pub(in crate::borrow_check) fn infer_opaque_types(
                             .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,