@@ -14,8 +14,9 @@ LL | | }
14
14
= help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
15
15
help: consider boxing the large fields to reduce the total size of the enum
16
16
|
17
- LL | B(Box<[i32; 8000]>),
18
- | ~~~~~~~~~~~~~~~~
17
+ LL - B([i32; 8000]),
18
+ LL + B(Box<[i32; 8000]>),
19
+ |
19
20
20
21
error: large size difference between variants
21
22
--> tests/ui/large_enum_variant.rs:38:1
@@ -31,8 +32,9 @@ LL | | }
31
32
|
32
33
help: consider boxing the large fields to reduce the total size of the enum
33
34
|
34
- LL | ContainingLargeEnum(Box<LargeEnum>),
35
- | ~~~~~~~~~~~~~~
35
+ LL - ContainingLargeEnum(LargeEnum),
36
+ LL + ContainingLargeEnum(Box<LargeEnum>),
37
+ |
36
38
37
39
error: large size difference between variants
38
40
--> tests/ui/large_enum_variant.rs:44:1
@@ -49,8 +51,9 @@ LL | | }
49
51
|
50
52
help: consider boxing the large fields to reduce the total size of the enum
51
53
|
52
- LL | ContainingMoreThanOneField(i32, Box<[i32; 8000]>, Box<[i32; 9500]>),
53
- | ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
54
+ LL - ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
55
+ LL + ContainingMoreThanOneField(i32, Box<[i32; 8000]>, Box<[i32; 9500]>),
56
+ |
54
57
55
58
error: large size difference between variants
56
59
--> tests/ui/large_enum_variant.rs:51:1
@@ -66,8 +69,9 @@ LL | | }
66
69
|
67
70
help: consider boxing the large fields to reduce the total size of the enum
68
71
|
69
- LL | StructLikeLarge { x: Box<[i32; 8000]>, y: i32 },
70
- | ~~~~~~~~~~~~~~~~
72
+ LL - StructLikeLarge { x: [i32; 8000], y: i32 },
73
+ LL + StructLikeLarge { x: Box<[i32; 8000]>, y: i32 },
74
+ |
71
75
72
76
error: large size difference between variants
73
77
--> tests/ui/large_enum_variant.rs:57:1
@@ -83,8 +87,9 @@ LL | | }
83
87
|
84
88
help: consider boxing the large fields to reduce the total size of the enum
85
89
|
86
- LL | StructLikeLarge2 { x: Box<[i32; 8000]> },
87
- | ~~~~~~~~~~~~~~~~
90
+ LL - StructLikeLarge2 { x: [i32; 8000] },
91
+ LL + StructLikeLarge2 { x: Box<[i32; 8000]> },
92
+ |
88
93
89
94
error: large size difference between variants
90
95
--> tests/ui/large_enum_variant.rs:74:1
@@ -101,8 +106,9 @@ LL | | }
101
106
|
102
107
help: consider boxing the large fields to reduce the total size of the enum
103
108
|
104
- LL | B(Box<[u8; 1255]>),
105
- | ~~~~~~~~~~~~~~~
109
+ LL - B([u8; 1255]),
110
+ LL + B(Box<[u8; 1255]>),
111
+ |
106
112
107
113
error: large size difference between variants
108
114
--> tests/ui/large_enum_variant.rs:81:1
@@ -118,8 +124,9 @@ LL | | }
118
124
|
119
125
help: consider boxing the large fields to reduce the total size of the enum
120
126
|
121
- LL | ContainingMoreThanOneField(Box<[i32; 8000]>, [i32; 2], Box<[i32; 9500]>, [i32; 30]),
122
- | ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
127
+ LL - ContainingMoreThanOneField([i32; 8000], [i32; 2], [i32; 9500], [i32; 30]),
128
+ LL + ContainingMoreThanOneField(Box<[i32; 8000]>, [i32; 2], Box<[i32; 9500]>, [i32; 30]),
129
+ |
123
130
124
131
error: large size difference between variants
125
132
--> tests/ui/large_enum_variant.rs:87:1
@@ -135,8 +142,9 @@ LL | | }
135
142
|
136
143
help: consider boxing the large fields to reduce the total size of the enum
137
144
|
138
- LL | B(Box<Struct2>),
139
- | ~~~~~~~~~~~~
145
+ LL - B(Struct2),
146
+ LL + B(Box<Struct2>),
147
+ |
140
148
141
149
error: large size difference between variants
142
150
--> tests/ui/large_enum_variant.rs:93:1
@@ -152,8 +160,9 @@ LL | | }
152
160
|
153
161
help: consider boxing the large fields to reduce the total size of the enum
154
162
|
155
- LL | B(Box<Struct2>),
156
- | ~~~~~~~~~~~~
163
+ LL - B(Struct2),
164
+ LL + B(Box<Struct2>),
165
+ |
157
166
158
167
error: large size difference between variants
159
168
--> tests/ui/large_enum_variant.rs:99:1
@@ -169,8 +178,9 @@ LL | | }
169
178
|
170
179
help: consider boxing the large fields to reduce the total size of the enum
171
180
|
172
- LL | B(Box<Struct2>),
173
- | ~~~~~~~~~~~~
181
+ LL - B(Struct2),
182
+ LL + B(Box<Struct2>),
183
+ |
174
184
175
185
error: large size difference between variants
176
186
--> tests/ui/large_enum_variant.rs:115:1
@@ -255,8 +265,9 @@ LL | | }
255
265
|
256
266
help: consider boxing the large fields to reduce the total size of the enum
257
267
|
258
- LL | Large(Box<(T, [u8; 512])>),
259
- | ~~~~~~~~~~~~~~~~~~~
268
+ LL - Large((T, [u8; 512])),
269
+ LL + Large(Box<(T, [u8; 512])>),
270
+ |
260
271
261
272
error: large size difference between variants
262
273
--> tests/ui/large_enum_variant.rs:159:1
@@ -272,8 +283,9 @@ LL | | }
272
283
|
273
284
help: consider boxing the large fields to reduce the total size of the enum
274
285
|
275
- LL | Large(Box<[Foo<u64>; 64]>),
276
- | ~~~~~~~~~~~~~~~~~~~
286
+ LL - Large([Foo<u64>; 64]),
287
+ LL + Large(Box<[Foo<u64>; 64]>),
288
+ |
277
289
278
290
error: large size difference between variants
279
291
--> tests/ui/large_enum_variant.rs:170:1
@@ -289,8 +301,9 @@ LL | | }
289
301
|
290
302
help: consider boxing the large fields to reduce the total size of the enum
291
303
|
292
- LL | Error(Box<PossiblyLargeEnumWithConst<256>>),
293
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304
+ LL - Error(PossiblyLargeEnumWithConst<256>),
305
+ LL + Error(Box<PossiblyLargeEnumWithConst<256>>),
306
+ |
294
307
295
308
error: large size difference between variants
296
309
--> tests/ui/large_enum_variant.rs:176:1
@@ -306,8 +319,9 @@ LL | | }
306
319
|
307
320
help: consider boxing the large fields to reduce the total size of the enum
308
321
|
309
- LL | Large(Box<[u64; 64]>),
310
- | ~~~~~~~~~~~~~~
322
+ LL - Large([u64; 64]),
323
+ LL + Large(Box<[u64; 64]>),
324
+ |
311
325
312
326
error: large size difference between variants
313
327
--> tests/ui/large_enum_variant.rs:187:1
@@ -323,8 +337,9 @@ LL | | }
323
337
|
324
338
help: consider boxing the large fields to reduce the total size of the enum
325
339
|
326
- LL | Error(Box<WithRecursionAndGenerics<u64>>),
327
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
340
+ LL - Error(WithRecursionAndGenerics<u64>),
341
+ LL + Error(Box<WithRecursionAndGenerics<u64>>),
342
+ |
328
343
329
344
error: aborting due to 18 previous errors
330
345
0 commit comments