We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e27150 commit 98e11b8Copy full SHA for 98e11b8
compiler/rustc_middle/src/ty/layout_sanity_check.rs
@@ -91,6 +91,10 @@ pub(super) fn sanity_check_layout<'tcx>(
91
FieldsShape::Primitive => {
92
// Fine.
93
}
94
+ FieldsShape::Union(..) => {
95
+ // FIXME: I guess we could also check something here? Like, look at all fields?
96
+ return;
97
+ }
98
FieldsShape::Arbitrary { .. } => {
99
// Should be an enum, the only field is the discriminant.
100
assert!(
0 commit comments