fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
3.6 KiB155 linesraw
1error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2  --> $DIR/repr-packed-contains-align.rs:19:1
3   |
4LL | struct SC(SA);
5   | ^^^^^^^^^^^^^^
6   |
7note: `SA` has a `#[repr(align)]` attribute
8  --> $DIR/repr-packed-contains-align.rs:5:1
9   |
10LL | struct SA(i32);
11   | ^^^^^^^^^^^^^^^
12
13error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
14  --> $DIR/repr-packed-contains-align.rs:22:1
15   |
16LL | struct SD(SB);
17   | ^^^^^^^^^^^^^^
18   |
19note: `SA` has a `#[repr(align)]` attribute
20  --> $DIR/repr-packed-contains-align.rs:5:1
21   |
22LL | struct SA(i32);
23   | ^^^^^^^^^^^^^^^
24note: `SD` contains a field of type `SB`
25  --> $DIR/repr-packed-contains-align.rs:22:11
26   |
27LL | struct SD(SB);
28   |           ^^
29note: ...which contains a field of type `SA`
30  --> $DIR/repr-packed-contains-align.rs:7:11
31   |
32LL | struct SB(SA);
33   |           ^^
34
35error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
36  --> $DIR/repr-packed-contains-align.rs:25:1
37   |
38LL | struct SE(UA);
39   | ^^^^^^^^^^^^^^
40   |
41note: `UA` has a `#[repr(align)]` attribute
42  --> $DIR/repr-packed-contains-align.rs:10:1
43   |
44LL | / union UA {
45LL | |     i: i32
46LL | | }
47   | |_^
48
49error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
50  --> $DIR/repr-packed-contains-align.rs:28:1
51   |
52LL | struct SF(UB);
53   | ^^^^^^^^^^^^^^
54   |
55note: `UA` has a `#[repr(align)]` attribute
56  --> $DIR/repr-packed-contains-align.rs:10:1
57   |
58LL | / union UA {
59LL | |     i: i32
60LL | | }
61   | |_^
62note: `SF` contains a field of type `UB`
63  --> $DIR/repr-packed-contains-align.rs:28:11
64   |
65LL | struct SF(UB);
66   |           ^^
67note: ...which contains a field of type `UA`
68  --> $DIR/repr-packed-contains-align.rs:15:5
69   |
70LL |     a: UA
71   |     ^
72
73error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
74  --> $DIR/repr-packed-contains-align.rs:31:1
75   |
76LL | / union UC {
77LL | |     a: UA
78LL | | }
79   | |_^
80   |
81note: `UA` has a `#[repr(align)]` attribute
82  --> $DIR/repr-packed-contains-align.rs:10:1
83   |
84LL | / union UA {
85LL | |     i: i32
86LL | | }
87   | |_^
88
89error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
90  --> $DIR/repr-packed-contains-align.rs:36:1
91   |
92LL | / union UD {
93LL | |     n: UB
94LL | | }
95   | |_^
96   |
97note: `UA` has a `#[repr(align)]` attribute
98  --> $DIR/repr-packed-contains-align.rs:10:1
99   |
100LL | / union UA {
101LL | |     i: i32
102LL | | }
103   | |_^
104note: `UD` contains a field of type `UB`
105  --> $DIR/repr-packed-contains-align.rs:37:5
106   |
107LL |     n: UB
108   |     ^
109note: ...which contains a field of type `UA`
110  --> $DIR/repr-packed-contains-align.rs:15:5
111   |
112LL |     a: UA
113   |     ^
114
115error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
116  --> $DIR/repr-packed-contains-align.rs:41:1
117   |
118LL | / union UE {
119LL | |     a: SA
120LL | | }
121   | |_^
122   |
123note: `SA` has a `#[repr(align)]` attribute
124  --> $DIR/repr-packed-contains-align.rs:5:1
125   |
126LL | struct SA(i32);
127   | ^^^^^^^^^^^^^^^
128
129error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
130  --> $DIR/repr-packed-contains-align.rs:46:1
131   |
132LL | / union UF {
133LL | |     n: SB
134LL | | }
135   | |_^
136   |
137note: `SA` has a `#[repr(align)]` attribute
138  --> $DIR/repr-packed-contains-align.rs:5:1
139   |
140LL | struct SA(i32);
141   | ^^^^^^^^^^^^^^^
142note: `UF` contains a field of type `SB`
143  --> $DIR/repr-packed-contains-align.rs:47:5
144   |
145LL |     n: SB
146   |     ^
147note: ...which contains a field of type `SA`
148  --> $DIR/repr-packed-contains-align.rs:7:11
149   |
150LL | struct SB(SA);
151   |           ^^
152
153error: aborting due to 8 previous errors
154
155For more information about this error, try `rustc --explain E0588`.