@@ -14,8 +14,9 @@ LL | | }
1414 = help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
1515help: consider boxing the large fields to reduce the total size of the enum
1616 |
17- LL | B(Box<[i32; 8000]>),
18- | ~~~~~~~~~~~~~~~~
17+ LL - B([i32; 8000]),
18+ LL + B(Box<[i32; 8000]>),
19+ |
1920
2021error: large size difference between variants
2122 --> tests/ui/large_enum_variant.rs:38:1
@@ -31,8 +32,9 @@ LL | | }
3132 |
3233help: consider boxing the large fields to reduce the total size of the enum
3334 |
34- LL | ContainingLargeEnum(Box<LargeEnum>),
35- | ~~~~~~~~~~~~~~
35+ LL - ContainingLargeEnum(LargeEnum),
36+ LL + ContainingLargeEnum(Box<LargeEnum>),
37+ |
3638
3739error: large size difference between variants
3840 --> tests/ui/large_enum_variant.rs:44:1
@@ -49,8 +51,9 @@ LL | | }
4951 |
5052help: consider boxing the large fields to reduce the total size of the enum
5153 |
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+ |
5457
5558error: large size difference between variants
5659 --> tests/ui/large_enum_variant.rs:51:1
@@ -66,8 +69,9 @@ LL | | }
6669 |
6770help: consider boxing the large fields to reduce the total size of the enum
6871 |
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+ |
7175
7276error: large size difference between variants
7377 --> tests/ui/large_enum_variant.rs:57:1
@@ -83,8 +87,9 @@ LL | | }
8387 |
8488help: consider boxing the large fields to reduce the total size of the enum
8589 |
86- LL | StructLikeLarge2 { x: Box<[i32; 8000]> },
87- | ~~~~~~~~~~~~~~~~
90+ LL - StructLikeLarge2 { x: [i32; 8000] },
91+ LL + StructLikeLarge2 { x: Box<[i32; 8000]> },
92+ |
8893
8994error: large size difference between variants
9095 --> tests/ui/large_enum_variant.rs:74:1
@@ -101,8 +106,9 @@ LL | | }
101106 |
102107help: consider boxing the large fields to reduce the total size of the enum
103108 |
104- LL | B(Box<[u8; 1255]>),
105- | ~~~~~~~~~~~~~~~
109+ LL - B([u8; 1255]),
110+ LL + B(Box<[u8; 1255]>),
111+ |
106112
107113error: large size difference between variants
108114 --> tests/ui/large_enum_variant.rs:81:1
@@ -118,8 +124,9 @@ LL | | }
118124 |
119125help: consider boxing the large fields to reduce the total size of the enum
120126 |
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+ |
123130
124131error: large size difference between variants
125132 --> tests/ui/large_enum_variant.rs:87:1
@@ -135,8 +142,9 @@ LL | | }
135142 |
136143help: consider boxing the large fields to reduce the total size of the enum
137144 |
138- LL | B(Box<Struct2>),
139- | ~~~~~~~~~~~~
145+ LL - B(Struct2),
146+ LL + B(Box<Struct2>),
147+ |
140148
141149error: large size difference between variants
142150 --> tests/ui/large_enum_variant.rs:93:1
@@ -152,8 +160,9 @@ LL | | }
152160 |
153161help: consider boxing the large fields to reduce the total size of the enum
154162 |
155- LL | B(Box<Struct2>),
156- | ~~~~~~~~~~~~
163+ LL - B(Struct2),
164+ LL + B(Box<Struct2>),
165+ |
157166
158167error: large size difference between variants
159168 --> tests/ui/large_enum_variant.rs:99:1
@@ -169,8 +178,9 @@ LL | | }
169178 |
170179help: consider boxing the large fields to reduce the total size of the enum
171180 |
172- LL | B(Box<Struct2>),
173- | ~~~~~~~~~~~~
181+ LL - B(Struct2),
182+ LL + B(Box<Struct2>),
183+ |
174184
175185error: large size difference between variants
176186 --> tests/ui/large_enum_variant.rs:115:1
@@ -255,8 +265,9 @@ LL | | }
255265 |
256266help: consider boxing the large fields to reduce the total size of the enum
257267 |
258- LL | Large(Box<(T, [u8; 512])>),
259- | ~~~~~~~~~~~~~~~~~~~
268+ LL - Large((T, [u8; 512])),
269+ LL + Large(Box<(T, [u8; 512])>),
270+ |
260271
261272error: large size difference between variants
262273 --> tests/ui/large_enum_variant.rs:159:1
@@ -272,8 +283,9 @@ LL | | }
272283 |
273284help: consider boxing the large fields to reduce the total size of the enum
274285 |
275- LL | Large(Box<[Foo<u64>; 64]>),
276- | ~~~~~~~~~~~~~~~~~~~
286+ LL - Large([Foo<u64>; 64]),
287+ LL + Large(Box<[Foo<u64>; 64]>),
288+ |
277289
278290error: large size difference between variants
279291 --> tests/ui/large_enum_variant.rs:170:1
@@ -289,8 +301,9 @@ LL | | }
289301 |
290302help: consider boxing the large fields to reduce the total size of the enum
291303 |
292- LL | Error(Box<PossiblyLargeEnumWithConst<256>>),
293- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304+ LL - Error(PossiblyLargeEnumWithConst<256>),
305+ LL + Error(Box<PossiblyLargeEnumWithConst<256>>),
306+ |
294307
295308error: large size difference between variants
296309 --> tests/ui/large_enum_variant.rs:176:1
@@ -306,8 +319,9 @@ LL | | }
306319 |
307320help: consider boxing the large fields to reduce the total size of the enum
308321 |
309- LL | Large(Box<[u64; 64]>),
310- | ~~~~~~~~~~~~~~
322+ LL - Large([u64; 64]),
323+ LL + Large(Box<[u64; 64]>),
324+ |
311325
312326error: large size difference between variants
313327 --> tests/ui/large_enum_variant.rs:187:1
@@ -323,8 +337,9 @@ LL | | }
323337 |
324338help: consider boxing the large fields to reduce the total size of the enum
325339 |
326- LL | Error(Box<WithRecursionAndGenerics<u64>>),
327- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
340+ LL - Error(WithRecursionAndGenerics<u64>),
341+ LL + Error(Box<WithRecursionAndGenerics<u64>>),
342+ |
328343
329344error: aborting due to 18 previous errors
330345
0 commit comments