2021-08-10 13:34:13 -05:00
|
|
|
error: layout_of(A) = Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(1 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(1 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Scalar(
|
|
|
|
Initialized {
|
|
|
|
value: Int(
|
|
|
|
I8,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 0..=0,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [
|
2022-04-30 11:30:11 -05:00
|
|
|
Size(0 bytes),
|
2021-10-13 08:58:41 -05:00
|
|
|
],
|
|
|
|
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..=0,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Multiple {
|
2022-03-03 06:02:12 -06:00
|
|
|
tag: Initialized {
|
2021-10-13 08:58:41 -05:00
|
|
|
value: Int(
|
|
|
|
I8,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 0..=0,
|
|
|
|
},
|
|
|
|
tag_encoding: Direct,
|
|
|
|
tag_field: 0,
|
|
|
|
variants: [
|
|
|
|
Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(1 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(1 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Aggregate {
|
|
|
|
sized: true,
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [],
|
|
|
|
memory_index: [],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: None,
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Single {
|
|
|
|
index: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
}
|
|
|
|
--> $DIR/thumb-enum.rs:16:1
|
|
|
|
|
|
|
|
|
LL | enum A { Apple }
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: layout_of(B) = Layout {
|
|
|
|
size: Size(1 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(1 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
abi: Scalar(
|
2022-03-03 06:02:12 -06:00
|
|
|
Initialized {
|
2021-10-13 08:58:41 -05:00
|
|
|
value: Int(
|
|
|
|
I8,
|
|
|
|
false,
|
|
|
|
),
|
2022-07-30 20:39:15 -05:00
|
|
|
valid_range: 255..=255,
|
2021-10-13 08:58:41 -05:00
|
|
|
},
|
|
|
|
),
|
2022-07-30 20:39:15 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [
|
|
|
|
Size(0 bytes),
|
|
|
|
],
|
|
|
|
memory_index: [
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
largest_niche: Some(
|
|
|
|
Niche {
|
2022-04-30 11:30:11 -05:00
|
|
|
offset: Size(0 bytes),
|
2022-03-03 06:02:12 -06:00
|
|
|
value: Int(
|
|
|
|
I8,
|
|
|
|
false,
|
|
|
|
),
|
2022-07-30 20:39:15 -05:00
|
|
|
valid_range: 255..=255,
|
2021-10-13 08:58:41 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
variants: Multiple {
|
2022-03-03 06:02:12 -06:00
|
|
|
tag: Initialized {
|
2021-10-13 08:58:41 -05:00
|
|
|
value: Int(
|
|
|
|
I8,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 255..=255,
|
|
|
|
},
|
|
|
|
tag_encoding: Direct,
|
|
|
|
tag_field: 0,
|
|
|
|
variants: [
|
|
|
|
Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(1 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(1 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Aggregate {
|
|
|
|
sized: true,
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [],
|
|
|
|
memory_index: [],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: None,
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Single {
|
|
|
|
index: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
2021-08-10 13:34:13 -05:00
|
|
|
--> $DIR/thumb-enum.rs:20:1
|
|
|
|
|
|
|
|
|
LL | enum B { Banana = 255, }
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^
|
2021-08-10 13:34:13 -05:00
|
|
|
|
|
|
|
error: layout_of(C) = Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(2 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(2 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Scalar(
|
|
|
|
Initialized {
|
|
|
|
value: Int(
|
|
|
|
I16,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 256..=256,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [
|
2022-04-30 11:30:11 -05:00
|
|
|
Size(0 bytes),
|
2021-10-13 08:58:41 -05:00
|
|
|
],
|
|
|
|
memory_index: [
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: Some(
|
|
|
|
Niche {
|
|
|
|
offset: Size(0 bytes),
|
|
|
|
value: Int(
|
|
|
|
I16,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 256..=256,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Multiple {
|
2022-03-03 06:02:12 -06:00
|
|
|
tag: Initialized {
|
2021-10-13 08:58:41 -05:00
|
|
|
value: Int(
|
|
|
|
I16,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 256..=256,
|
|
|
|
},
|
|
|
|
tag_encoding: Direct,
|
|
|
|
tag_field: 0,
|
|
|
|
variants: [
|
|
|
|
Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(2 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(2 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Aggregate {
|
|
|
|
sized: true,
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [],
|
|
|
|
memory_index: [],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: None,
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Single {
|
|
|
|
index: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
2021-08-10 13:34:13 -05:00
|
|
|
--> $DIR/thumb-enum.rs:24:1
|
|
|
|
|
|
|
|
|
LL | enum C { Chaenomeles = 256, }
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^
|
2021-08-10 13:34:13 -05:00
|
|
|
|
|
|
|
error: layout_of(P) = Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(4 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(4 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Scalar(
|
|
|
|
Initialized {
|
|
|
|
value: Int(
|
|
|
|
I32,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 268435456..=268435456,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [
|
2022-04-30 11:30:11 -05:00
|
|
|
Size(0 bytes),
|
2021-10-13 08:58:41 -05:00
|
|
|
],
|
|
|
|
memory_index: [
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: Some(
|
|
|
|
Niche {
|
|
|
|
offset: Size(0 bytes),
|
|
|
|
value: Int(
|
|
|
|
I32,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 268435456..=268435456,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Multiple {
|
2022-03-03 06:02:12 -06:00
|
|
|
tag: Initialized {
|
2021-10-13 08:58:41 -05:00
|
|
|
value: Int(
|
|
|
|
I32,
|
|
|
|
false,
|
|
|
|
),
|
|
|
|
valid_range: 268435456..=268435456,
|
|
|
|
},
|
|
|
|
tag_encoding: Direct,
|
|
|
|
tag_field: 0,
|
|
|
|
variants: [
|
|
|
|
Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(4 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(4 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Aggregate {
|
|
|
|
sized: true,
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [],
|
|
|
|
memory_index: [],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: None,
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Single {
|
|
|
|
index: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
2021-08-10 13:34:13 -05:00
|
|
|
--> $DIR/thumb-enum.rs:28:1
|
|
|
|
|
|
|
|
|
LL | enum P { Peach = 0x1000_0000isize, }
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^
|
2021-08-10 13:34:13 -05:00
|
|
|
|
|
|
|
error: layout_of(T) = Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(4 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(4 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Scalar(
|
|
|
|
Initialized {
|
|
|
|
value: Int(
|
|
|
|
I32,
|
|
|
|
true,
|
|
|
|
),
|
|
|
|
valid_range: 2164260864..=2164260864,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [
|
2022-04-30 11:30:11 -05:00
|
|
|
Size(0 bytes),
|
2021-10-13 08:58:41 -05:00
|
|
|
],
|
|
|
|
memory_index: [
|
|
|
|
0,
|
|
|
|
],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: Some(
|
|
|
|
Niche {
|
|
|
|
offset: Size(0 bytes),
|
|
|
|
value: Int(
|
|
|
|
I32,
|
|
|
|
true,
|
|
|
|
),
|
|
|
|
valid_range: 2164260864..=2164260864,
|
|
|
|
},
|
|
|
|
),
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Multiple {
|
2022-03-03 06:02:12 -06:00
|
|
|
tag: Initialized {
|
2021-10-13 08:58:41 -05:00
|
|
|
value: Int(
|
|
|
|
I32,
|
|
|
|
true,
|
|
|
|
),
|
|
|
|
valid_range: 2164260864..=2164260864,
|
|
|
|
},
|
|
|
|
tag_encoding: Direct,
|
|
|
|
tag_field: 0,
|
|
|
|
variants: [
|
|
|
|
Layout {
|
2022-07-30 20:39:15 -05:00
|
|
|
size: Size(4 bytes),
|
|
|
|
align: AbiAndPrefAlign {
|
|
|
|
abi: Align(4 bytes),
|
|
|
|
pref: Align(4 bytes),
|
|
|
|
},
|
|
|
|
abi: Aggregate {
|
|
|
|
sized: true,
|
|
|
|
},
|
2021-10-13 08:58:41 -05:00
|
|
|
fields: Arbitrary {
|
|
|
|
offsets: [],
|
|
|
|
memory_index: [],
|
|
|
|
},
|
2022-07-30 20:39:15 -05:00
|
|
|
largest_niche: None,
|
2021-10-13 08:58:41 -05:00
|
|
|
variants: Single {
|
|
|
|
index: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
2021-08-10 13:34:13 -05:00
|
|
|
--> $DIR/thumb-enum.rs:34:1
|
|
|
|
|
|
|
|
|
LL | enum T { Tangerine = TANGERINE as isize }
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^
|
2021-08-10 13:34:13 -05:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|