Skip to content

Commit 2b46a5e

Browse files
committed
nyaaa 🤔
1 parent 1285423 commit 2b46a5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

compiler/rustc_borrowck/src/region_infer/opaque_types.rs

+8
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,14 @@ fn apply_defining_uses<'tcx>(
615615
),
616616
) {
617617
root_cx.add_concrete_opaque_type(key.def_id, OpaqueHiddenType::new_error(tcx, guar));
618+
} else {
619+
let opaque_types = infcx.take_opaque_types();
620+
if !opaque_types.is_empty() {
621+
tcx.dcx().span_delayed_bug(
622+
hidden_type.span,
623+
format!("unsupported recursive opaque type definition: {:?}", opaque_types),
624+
);
625+
}
618626
}
619627
}
620628
}

0 commit comments

Comments
 (0)