You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Type-level uninhabitedness should always imply ABI uninhabitedness. This can be expensive on
24
+
// big non-exhaustive types, and is [hard to
25
+
// fix](https://github.com/rust-lang/rust/issues/141006#issuecomment-2883415000) in general.
26
+
// Only doing this sanity check when debug assertions are turned on avoids the issue for the
27
+
// very specific case of #140944.
28
+
if layout.ty.is_privately_uninhabited(tcx, cx.typing_env){
29
+
assert!(
30
+
layout.is_uninhabited(),
31
+
"{:?} is type-level uninhabited but not ABI-uninhabited?",
0 commit comments