Skip to content

Commit bd156d7

Browse files
call is_uninhabited again
Co-authored-by: Michael Goulet <[email protected]>
1 parent ef67904 commit bd156d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_abi/src/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ where
2828
VariantIdx: Idx,
2929
F: Deref<Target = &'a LayoutS<FieldIdx, VariantIdx>> + fmt::Debug,
3030
{
31-
let uninhabited = fields.iter().any(|f| f.ir_form.is_uninhabited());
31+
let uninhabited = fields.iter().any(|f| f.is_uninhabited());
3232
// We cannot ignore alignment; that might lead us to entirely discard a variant and
3333
// produce an enum that is less aligned than it should be!
3434
let is_1zst = fields.iter().all(|f| f.is_1zst());

0 commit comments

Comments
 (0)