rust/tests/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.stderr

656 lines
21 KiB
Plaintext
Raw Normal View History

error: layout_of(MissingPayloadField) = Layout {
2022-07-30 20:39:15 -05:00
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,
],
},
2022-07-30 20:39:15 -05:00
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 {
2022-07-30 20:39:15 -05:00
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,
),
},
),
2022-07-30 20:39:15 -05:00
fields: Arbitrary {
offsets: [
Size(1 bytes),
],
memory_index: [
0,
],
},
largest_niche: None,
2022-07-30 20:39:15 -05:00
variants: Single {
index: 0,
},
},
Layout {
size: Size(1 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
2022-07-30 20:39:15 -05:00
abi: Aggregate {
sized: true,
},
fields: Arbitrary {
offsets: [],
memory_index: [],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
index: 1,
},
},
],
},
2022-07-30 20:39:15 -05:00
}
--> $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,
},
2022-07-30 20:39:15 -05:00
Initialized {
value: Int(
I8,
false,
),
2022-07-30 20:39:15 -05:00
valid_range: 0..=255,
},
),
2022-07-30 20:39:15 -05:00
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 {
2022-07-30 20:39:15 -05:00
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,
],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
2022-07-30 20:39:15 -05:00
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,
},
),
2022-07-30 20:39:15 -05:00
fields: Arbitrary {
offsets: [
Size(1 bytes),
],
memory_index: [
0,
],
},
largest_niche: None,
2022-07-30 20:39:15 -05:00
variants: Single {
index: 1,
},
},
],
},
2022-07-30 20:39:15 -05:00
}
--> $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,
},
2022-07-30 20:39:15 -05:00
Union {
value: Int(
I8,
false,
),
},
),
2022-07-30 20:39:15 -05:00
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 {
2022-07-30 20:39:15 -05:00
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,
],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
2022-07-30 20:39:15 -05:00
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,
),
},
),
2022-07-30 20:39:15 -05:00
fields: Arbitrary {
offsets: [
Size(1 bytes),
],
memory_index: [
0,
],
},
largest_niche: None,
2022-07-30 20:39:15 -05:00
variants: Single {
index: 1,
},
},
],
},
2022-07-30 20:39:15 -05:00
}
--> $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(
2022-10-06 18:10:15 -05:00
Union {
value: Int(
I8,
false,
),
},
2022-10-06 18:10:15 -05:00
Initialized {
value: Int(
I8,
false,
),
2022-10-06 18:10:15 -05:00
valid_range: 0..=4,
},
),
2022-07-30 20:39:15 -05:00
fields: Arbitrary {
offsets: [
2022-10-06 18:10:15 -05:00
Size(1 bytes),
2022-07-30 20:39:15 -05:00
],
memory_index: [
0,
],
},
largest_niche: Some(
Niche {
2022-10-06 18:10:15 -05:00
offset: Size(1 bytes),
value: Int(
I8,
false,
),
2022-07-30 20:39:15 -05:00
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 {
2022-07-30 20:39:15 -05:00
size: Size(2 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
abi: ScalarPair(
Initialized {
value: Int(
I8,
false,
),
2022-10-06 18:10:15 -05:00
valid_range: 0..=255,
},
Initialized {
value: Int(
I8,
false,
),
2022-10-06 18:10:15 -05:00
valid_range: 0..=2,
},
),
2022-07-30 20:39:15 -05:00
fields: Arbitrary {
offsets: [
Size(1 bytes),
2022-10-06 18:10:15 -05:00
Size(0 bytes),
2022-07-30 20:39:15 -05:00
],
memory_index: [
1,
2022-10-06 18:10:15 -05:00
0,
2022-07-30 20:39:15 -05:00
],
},
largest_niche: Some(
Niche {
2022-10-06 18:10:15 -05:00
offset: Size(1 bytes),
value: Int(
I8,
false,
),
valid_range: 0..=2,
},
),
2022-07-30 20:39:15 -05:00
variants: Single {
index: 0,
},
},
Layout {
size: Size(0 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
2022-07-30 20:39:15 -05:00
abi: Aggregate {
sized: true,
},
fields: Arbitrary {
offsets: [],
memory_index: [],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
index: 1,
},
2022-07-30 20:39:15 -05:00
},
Layout {
size: Size(0 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
2022-07-30 20:39:15 -05:00
abi: Aggregate {
sized: true,
},
fields: Arbitrary {
offsets: [],
memory_index: [],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
index: 2,
},
},
],
},
2022-07-30 20:39:15 -05:00
}
--> $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(
Union {
value: Int(
I8,
false,
),
},
2022-07-30 20:39:15 -05:00
Initialized {
value: Int(
I8,
false,
),
valid_range: 0..=4,
},
),
fields: Arbitrary {
offsets: [
Size(1 bytes),
],
memory_index: [
0,
],
},
2022-07-30 20:39:15 -05:00
largest_niche: Some(
Niche {
offset: Size(1 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 {
2022-07-30 20:39:15 -05:00
size: Size(2 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
abi: ScalarPair(
Initialized {
value: Int(
I8,
false,
),
valid_range: 0..=255,
},
Initialized {
value: Int(
I8,
false,
),
valid_range: 0..=2,
},
),
2022-07-30 20:39:15 -05:00
fields: Arbitrary {
offsets: [
Size(0 bytes),
Size(1 bytes),
],
memory_index: [
0,
1,
],
},
largest_niche: Some(
Niche {
offset: Size(1 bytes),
value: Int(
I8,
false,
),
valid_range: 0..=2,
},
),
2022-07-30 20:39:15 -05:00
variants: Single {
index: 0,
},
},
Layout {
size: Size(0 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
2022-07-30 20:39:15 -05:00
abi: Aggregate {
sized: true,
},
fields: Arbitrary {
offsets: [],
memory_index: [],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
index: 1,
},
2022-07-30 20:39:15 -05:00
},
Layout {
size: Size(0 bytes),
align: AbiAndPrefAlign {
abi: Align(1 bytes),
pref: $PREF_ALIGN,
},
2022-07-30 20:39:15 -05:00
abi: Aggregate {
sized: true,
},
fields: Arbitrary {
offsets: [],
memory_index: [],
},
2022-07-30 20:39:15 -05:00
largest_niche: None,
variants: Single {
index: 2,
},
},
],
},
}
--> $DIR/issue-96158-scalarpair-payload-might-be-uninit.rs:50:1
|
2022-02-13 09:27:59 -06:00
LL | pub enum NicheSecond {
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 5 previous errors