@@ -12,7 +12,7 @@ note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
12
12
--> $DIR/static_items_large_align.rs:7:1
13
13
|
14
14
LL | struct Aligned(u8);
15
- | ^^^^^^^^^^^^^^^^^^^
15
+ | ^^^^^^^^^^^^^^
16
16
17
17
error: this static item (itself or its subfield) has a type alignment,
18
18
which is larger than page size and may not be fulfilled,
@@ -32,7 +32,7 @@ note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
32
32
--> $DIR/static_items_large_align.rs:7:1
33
33
|
34
34
LL | struct Aligned(u8);
35
- | ^^^^^^^^^^^^^^^^^^^
35
+ | ^^^^^^^^^^^^^^
36
36
37
37
error: this static item (itself or its subfield) has a type alignment,
38
38
which is larger than page size and may not be fulfilled,
@@ -46,13 +46,13 @@ note: struct `AlignedPtr` contains an inner type with large alignment
46
46
--> $DIR/static_items_large_align.rs:18:1
47
47
|
48
48
LL | struct AlignedPtr(*const Aligned);
49
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
+ | ^^^^^^^^^^^^^^^^^
50
50
note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
51
51
if you know what you are doing, config the default page size clippy uses in clippy.toml
52
52
--> $DIR/static_items_large_align.rs:7:1
53
53
|
54
54
LL | struct Aligned(u8);
55
- | ^^^^^^^^^^^^^^^^^^^
55
+ | ^^^^^^^^^^^^^^
56
56
57
57
error: this static item (itself or its subfield) has a type alignment,
58
58
which is larger than page size and may not be fulfilled,
@@ -65,17 +65,14 @@ LL | static XW: AlignedWrapper = AlignedWrapper { f: 0, g: Aligned(0) };
65
65
note: struct `AlignedWrapper` contains an inner type with large alignment
66
66
--> $DIR/static_items_large_align.rs:9:1
67
67
|
68
- LL | / struct AlignedWrapper {
69
- LL | | f: u8,
70
- LL | | g: Aligned,
71
- LL | | }
72
- | |_^
68
+ LL | struct AlignedWrapper {
69
+ | ^^^^^^^^^^^^^^^^^^^^^
73
70
note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
74
71
if you know what you are doing, config the default page size clippy uses in clippy.toml
75
72
--> $DIR/static_items_large_align.rs:7:1
76
73
|
77
74
LL | struct Aligned(u8);
78
- | ^^^^^^^^^^^^^^^^^^^
75
+ | ^^^^^^^^^^^^^^
79
76
80
77
error: this static item (itself or its subfield) has a type alignment,
81
78
which is larger than page size and may not be fulfilled,
@@ -95,7 +92,7 @@ note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
95
92
--> $DIR/static_items_large_align.rs:7:1
96
93
|
97
94
LL | struct Aligned(u8);
98
- | ^^^^^^^^^^^^^^^^^^^
95
+ | ^^^^^^^^^^^^^^
99
96
100
97
error: this static item (itself or its subfield) has a type alignment,
101
98
which is larger than page size and may not be fulfilled,
@@ -115,7 +112,7 @@ note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
115
112
--> $DIR/static_items_large_align.rs:7:1
116
113
|
117
114
LL | struct Aligned(u8);
118
- | ^^^^^^^^^^^^^^^^^^^
115
+ | ^^^^^^^^^^^^^^
119
116
120
117
error: this static item (itself or its subfield) has a type alignment,
121
118
which is larger than page size and may not be fulfilled,
@@ -128,16 +125,14 @@ LL | static XE: AlignedEnum = AlignedEnum::A(Aligned(0));
128
125
note: enum `AlignedEnum` contains an inner type with large alignment
129
126
--> $DIR/static_items_large_align.rs:14:1
130
127
|
131
- LL | / enum AlignedEnum {
132
- LL | | A(Aligned),
133
- LL | | }
134
- | |_^
128
+ LL | enum AlignedEnum {
129
+ | ^^^^^^^^^^^^^^^^
135
130
note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
136
131
if you know what you are doing, config the default page size clippy uses in clippy.toml
137
132
--> $DIR/static_items_large_align.rs:7:1
138
133
|
139
134
LL | struct Aligned(u8);
140
- | ^^^^^^^^^^^^^^^^^^^
135
+ | ^^^^^^^^^^^^^^
141
136
142
137
error: this static item (itself or its subfield) has a type alignment,
143
138
which is larger than page size and may not be fulfilled,
@@ -154,13 +149,13 @@ note: struct `AlignedGeneric` with substitutions [
154
149
--> $DIR/static_items_large_align.rs:22:1
155
150
|
156
151
LL | struct AlignedGeneric<T>(T);
157
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
158
153
note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
159
154
if you know what you are doing, config the default page size clippy uses in clippy.toml
160
155
--> $DIR/static_items_large_align.rs:7:1
161
156
|
162
157
LL | struct Aligned(u8);
163
- | ^^^^^^^^^^^^^^^^^^^
158
+ | ^^^^^^^^^^^^^^
164
159
165
160
error: this static item (itself or its subfield) has a type alignment,
166
161
which is larger than page size and may not be fulfilled,
@@ -177,21 +172,18 @@ note: struct `AlignedGeneric` with substitutions [
177
172
--> $DIR/static_items_large_align.rs:22:1
178
173
|
179
174
LL | struct AlignedGeneric<T>(T);
180
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
181
176
note: struct `AlignedWrapper` contains an inner type with large alignment
182
177
--> $DIR/static_items_large_align.rs:9:1
183
178
|
184
- LL | / struct AlignedWrapper {
185
- LL | | f: u8,
186
- LL | | g: Aligned,
187
- LL | | }
188
- | |_^
179
+ LL | struct AlignedWrapper {
180
+ | ^^^^^^^^^^^^^^^^^^^^^
189
181
note: struct `Aligned` has alignment 0x100000, which is larger than 0x1000,
190
182
if you know what you are doing, config the default page size clippy uses in clippy.toml
191
183
--> $DIR/static_items_large_align.rs:7:1
192
184
|
193
185
LL | struct Aligned(u8);
194
- | ^^^^^^^^^^^^^^^^^^^
186
+ | ^^^^^^^^^^^^^^
195
187
196
188
error: this static item (itself or its subfield) has a type alignment,
197
189
which is larger than page size and may not be fulfilled,
@@ -211,25 +203,22 @@ note: struct `AGWithArgs` with substitutions [
211
203
contains an inner type with large alignment
212
204
--> $DIR/static_items_large_align.rs:63:1
213
205
|
214
- LL | / struct AGWithArgs<A, B> {
215
- LL | | not_aligned: FnPtr<A>,
216
- LL | | aligned: AGAlias<B>,
217
- LL | | }
218
- | |_^
206
+ LL | struct AGWithArgs<A, B> {
207
+ | ^^^^^^^^^^^^^^^^^^^^^^^
219
208
note: struct `AG` with substitutions [
220
209
AlignedB,
221
210
],
222
211
contains an inner type with large alignment
223
212
--> $DIR/static_items_large_align.rs:59:1
224
213
|
225
214
LL | struct AG<T>(T);
226
- | ^^^^^^^^^^^^^^^^
215
+ | ^^^^^^^^^^^^
227
216
note: struct `AlignedB` has alignment 0x100000, which is larger than 0x1000,
228
217
if you know what you are doing, config the default page size clippy uses in clippy.toml
229
218
--> $DIR/static_items_large_align.rs:55:1
230
219
|
231
220
LL | struct AlignedB(u8);
232
- | ^^^^^^^^^^^^^^^^^^^^
221
+ | ^^^^^^^^^^^^^^^
233
222
234
223
error: aborting due to 10 previous errors
235
224
0 commit comments