We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_uninhabited
1 parent ef67904 commit bd156d7Copy full SHA for bd156d7
compiler/rustc_abi/src/layout.rs
@@ -28,7 +28,7 @@ where
28
VariantIdx: Idx,
29
F: Deref<Target = &'a LayoutS<FieldIdx, VariantIdx>> + fmt::Debug,
30
{
31
- let uninhabited = fields.iter().any(|f| f.ir_form.is_uninhabited());
+ let uninhabited = fields.iter().any(|f| f.is_uninhabited());
32
// We cannot ignore alignment; that might lead us to entirely discard a variant and
33
// produce an enum that is less aligned than it should be!
34
let is_1zst = fields.iter().all(|f| f.is_1zst());
0 commit comments