error: layout_of(MissingPayloadField) = Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(0 bytes), ], memory_index: [ 0, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=1, }, ), variants: Multiple { tag: Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, tag_encoding: Direct, tag_field: 0, variants: [ Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(1 bytes), ], memory_index: [ 0, ], }, largest_niche: None, variants: Single { index: 0, }, }, Layout { size: Size(1 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: Aggregate { sized: true, }, fields: Arbitrary { offsets: [], memory_index: [], }, largest_niche: None, variants: Single { index: 1, }, }, ], }, } --> $DIR/issue-96158-scalarpair-payload-might-be-uninit.rs:16:1 | LL | pub enum MissingPayloadField { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: layout_of(CommonPayloadField) = Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Initialized { value: Int( I8, false, ), valid_range: 0..=255, }, ), fields: Arbitrary { offsets: [ Size(0 bytes), ], memory_index: [ 0, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=1, }, ), variants: Multiple { tag: Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, tag_encoding: Direct, tag_field: 0, variants: [ Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Initialized { value: Int( I8, false, ), valid_range: 0..=255, }, ), fields: Arbitrary { offsets: [ Size(1 bytes), ], memory_index: [ 0, ], }, largest_niche: None, variants: Single { index: 0, }, }, Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Initialized { value: Int( I8, false, ), valid_range: 0..=255, }, ), fields: Arbitrary { offsets: [ Size(1 bytes), ], memory_index: [ 0, ], }, largest_niche: None, variants: Single { index: 1, }, }, ], }, } --> $DIR/issue-96158-scalarpair-payload-might-be-uninit.rs:25:1 | LL | pub enum CommonPayloadField { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: layout_of(CommonPayloadFieldIsMaybeUninit) = Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(0 bytes), ], memory_index: [ 0, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=1, }, ), variants: Multiple { tag: Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, tag_encoding: Direct, tag_field: 0, variants: [ Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(1 bytes), ], memory_index: [ 0, ], }, largest_niche: None, variants: Single { index: 0, }, }, Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=1, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(1 bytes), ], memory_index: [ 0, ], }, largest_niche: None, variants: Single { index: 1, }, }, ], }, } --> $DIR/issue-96158-scalarpair-payload-might-be-uninit.rs:33:1 | LL | pub enum CommonPayloadFieldIsMaybeUninit { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: layout_of(NicheFirst) = Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=4, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(0 bytes), ], memory_index: [ 0, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=4, }, ), variants: Multiple { tag: Initialized { value: Int( I8, false, ), valid_range: 0..=4, }, tag_encoding: Niche { untagged_variant: 0, niche_variants: 1..=2, niche_start: 3, }, tag_field: 0, variants: [ Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=2, }, Initialized { value: Int( I8, false, ), valid_range: 0..=255, }, ), fields: Arbitrary { offsets: [ Size(0 bytes), Size(1 bytes), ], memory_index: [ 0, 1, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=2, }, ), variants: Single { index: 0, }, }, Layout { size: Size(0 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: Aggregate { sized: true, }, fields: Arbitrary { offsets: [], memory_index: [], }, largest_niche: None, variants: Single { index: 1, }, }, Layout { size: Size(0 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: Aggregate { sized: true, }, fields: Arbitrary { offsets: [], memory_index: [], }, largest_niche: None, variants: Single { index: 2, }, }, ], }, } --> $DIR/issue-96158-scalarpair-payload-might-be-uninit.rs:41:1 | LL | pub enum NicheFirst { | ^^^^^^^^^^^^^^^^^^^ error: layout_of(NicheSecond) = Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=4, }, Union { value: Int( I8, false, ), }, ), fields: Arbitrary { offsets: [ Size(0 bytes), ], memory_index: [ 0, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=4, }, ), variants: Multiple { tag: Initialized { value: Int( I8, false, ), valid_range: 0..=4, }, tag_encoding: Niche { untagged_variant: 0, niche_variants: 1..=2, niche_start: 3, }, tag_field: 0, variants: [ Layout { size: Size(2 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: ScalarPair( Initialized { value: Int( I8, false, ), valid_range: 0..=2, }, Initialized { value: Int( I8, false, ), valid_range: 0..=255, }, ), fields: Arbitrary { offsets: [ Size(1 bytes), Size(0 bytes), ], memory_index: [ 1, 0, ], }, largest_niche: Some( Niche { offset: Size(0 bytes), value: Int( I8, false, ), valid_range: 0..=2, }, ), variants: Single { index: 0, }, }, Layout { size: Size(0 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: Aggregate { sized: true, }, fields: Arbitrary { offsets: [], memory_index: [], }, largest_niche: None, variants: Single { index: 1, }, }, Layout { size: Size(0 bytes), align: AbiAndPrefAlign { abi: Align(1 bytes), pref: $PREF_ALIGN, }, abi: Aggregate { sized: true, }, fields: Arbitrary { offsets: [], memory_index: [], }, largest_niche: None, variants: Single { index: 2, }, }, ], }, } --> $DIR/issue-96158-scalarpair-payload-might-be-uninit.rs:50:1 | LL | pub enum NicheSecond { | ^^^^^^^^^^^^^^^^^^^^ error: aborting due to 5 previous errors