@@ -13,9 +13,8 @@ LL | | }
1313 = help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
1414help: consider boxing the large fields to reduce the total size of the enum
1515 |
16- LL - B([i32; 8000]),
17- LL + B(Box<[i32; 8000]>),
18- |
16+ LL | B(Box<[i32; 8000]>),
17+ | ++++ +
1918
2019error: large size difference between variants
2120 --> tests/ui/large_enum_variant.rs:35:1
@@ -30,9 +29,8 @@ LL | | }
3029 |
3130help: consider boxing the large fields to reduce the total size of the enum
3231 |
33- LL - ContainingLargeEnum(LargeEnum),
34- LL + ContainingLargeEnum(Box<LargeEnum>),
35- |
32+ LL | ContainingLargeEnum(Box<LargeEnum>),
33+ | ++++ +
3634
3735error: large size difference between variants
3836 --> tests/ui/large_enum_variant.rs:40:1
@@ -48,9 +46,8 @@ LL | | }
4846 |
4947help: consider boxing the large fields to reduce the total size of the enum
5048 |
51- LL - ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
52- LL + ContainingMoreThanOneField(i32, Box<[i32; 8000]>, Box<[i32; 9500]>),
53- |
49+ LL | ContainingMoreThanOneField(i32, Box<[i32; 8000]>, Box<[i32; 9500]>),
50+ | ++++ + ++++ +
5451
5552error: large size difference between variants
5653 --> tests/ui/large_enum_variant.rs:46:1
@@ -65,9 +62,8 @@ LL | | }
6562 |
6663help: consider boxing the large fields to reduce the total size of the enum
6764 |
68- LL - StructLikeLarge { x: [i32; 8000], y: i32 },
69- LL + StructLikeLarge { x: Box<[i32; 8000]>, y: i32 },
70- |
65+ LL | StructLikeLarge { x: Box<[i32; 8000]>, y: i32 },
66+ | ++++ +
7167
7268error: large size difference between variants
7369 --> tests/ui/large_enum_variant.rs:51:1
@@ -82,9 +78,8 @@ LL | | }
8278 |
8379help: consider boxing the large fields to reduce the total size of the enum
8480 |
85- LL - StructLikeLarge2 { x: [i32; 8000] },
86- LL + StructLikeLarge2 { x: Box<[i32; 8000]> },
87- |
81+ LL | StructLikeLarge2 { x: Box<[i32; 8000]> },
82+ | ++++ +
8883
8984error: large size difference between variants
9085 --> tests/ui/large_enum_variant.rs:67:1
@@ -100,9 +95,8 @@ LL | | }
10095 |
10196help: consider boxing the large fields to reduce the total size of the enum
10297 |
103- LL - B([u8; 1255]),
104- LL + B(Box<[u8; 1255]>),
105- |
98+ LL | B(Box<[u8; 1255]>),
99+ | ++++ +
106100
107101error: large size difference between variants
108102 --> tests/ui/large_enum_variant.rs:73:1
@@ -117,9 +111,8 @@ LL | | }
117111 |
118112help: consider boxing the large fields to reduce the total size of the enum
119113 |
120- LL - ContainingMoreThanOneField([i32; 8000], [i32; 2], [i32; 9500], [i32; 30]),
121- LL + ContainingMoreThanOneField(Box<[i32; 8000]>, [i32; 2], Box<[i32; 9500]>, [i32; 30]),
122- |
114+ LL | ContainingMoreThanOneField(Box<[i32; 8000]>, [i32; 2], Box<[i32; 9500]>, [i32; 30]),
115+ | ++++ + ++++ +
123116
124117error: large size difference between variants
125118 --> tests/ui/large_enum_variant.rs:78:1
@@ -134,9 +127,8 @@ LL | | }
134127 |
135128help: consider boxing the large fields to reduce the total size of the enum
136129 |
137- LL - B(Struct2),
138- LL + B(Box<Struct2>),
139- |
130+ LL | B(Box<Struct2>),
131+ | ++++ +
140132
141133error: large size difference between variants
142134 --> tests/ui/large_enum_variant.rs:83:1
@@ -151,9 +143,8 @@ LL | | }
151143 |
152144help: consider boxing the large fields to reduce the total size of the enum
153145 |
154- LL - B(Struct2),
155- LL + B(Box<Struct2>),
156- |
146+ LL | B(Box<Struct2>),
147+ | ++++ +
157148
158149error: large size difference between variants
159150 --> tests/ui/large_enum_variant.rs:88:1
@@ -168,9 +159,8 @@ LL | | }
168159 |
169160help: consider boxing the large fields to reduce the total size of the enum
170161 |
171- LL - B(Struct2),
172- LL + B(Box<Struct2>),
173- |
162+ LL | B(Box<Struct2>),
163+ | ++++ +
174164
175165error: large size difference between variants
176166 --> tests/ui/large_enum_variant.rs:103:1
@@ -251,9 +241,8 @@ LL | | }
251241 |
252242help: consider boxing the large fields to reduce the total size of the enum
253243 |
254- LL - Large((T, [u8; 512])),
255- LL + Large(Box<(T, [u8; 512])>),
256- |
244+ LL | Large(Box<(T, [u8; 512])>),
245+ | ++++ +
257246
258247error: large size difference between variants
259248 --> tests/ui/large_enum_variant.rs:143:1
@@ -268,9 +257,8 @@ LL | | }
268257 |
269258help: consider boxing the large fields to reduce the total size of the enum
270259 |
271- LL - Large([Foo<u64>; 64]),
272- LL + Large(Box<[Foo<u64>; 64]>),
273- |
260+ LL | Large(Box<[Foo<u64>; 64]>),
261+ | ++++ +
274262
275263error: large size difference between variants
276264 --> tests/ui/large_enum_variant.rs:153:1
@@ -285,9 +273,8 @@ LL | | }
285273 |
286274help: consider boxing the large fields to reduce the total size of the enum
287275 |
288- LL - Error(PossiblyLargeEnumWithConst<256>),
289- LL + Error(Box<PossiblyLargeEnumWithConst<256>>),
290- |
276+ LL | Error(Box<PossiblyLargeEnumWithConst<256>>),
277+ | ++++ +
291278
292279error: aborting due to 16 previous errors
293280
0 commit comments