@@ -13,9 +13,8 @@ LL | | }
13
13
= help: to override `-D warnings` add `#[allow(clippy::large_enum_variant)]`
14
14
help: consider boxing the large fields to reduce the total size of the enum
15
15
|
16
- LL - B([i32; 8000]),
17
- LL + B(Box<[i32; 8000]>),
18
- |
16
+ LL | B(Box<[i32; 8000]>),
17
+ | ++++ +
19
18
20
19
error: large size difference between variants
21
20
--> tests/ui/large_enum_variant.rs:35:1
@@ -30,9 +29,8 @@ LL | | }
30
29
|
31
30
help: consider boxing the large fields to reduce the total size of the enum
32
31
|
33
- LL - ContainingLargeEnum(LargeEnum),
34
- LL + ContainingLargeEnum(Box<LargeEnum>),
35
- |
32
+ LL | ContainingLargeEnum(Box<LargeEnum>),
33
+ | ++++ +
36
34
37
35
error: large size difference between variants
38
36
--> tests/ui/large_enum_variant.rs:40:1
@@ -48,9 +46,8 @@ LL | | }
48
46
|
49
47
help: consider boxing the large fields to reduce the total size of the enum
50
48
|
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
+ | ++++ + ++++ +
54
51
55
52
error: large size difference between variants
56
53
--> tests/ui/large_enum_variant.rs:46:1
@@ -65,9 +62,8 @@ LL | | }
65
62
|
66
63
help: consider boxing the large fields to reduce the total size of the enum
67
64
|
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
+ | ++++ +
71
67
72
68
error: large size difference between variants
73
69
--> tests/ui/large_enum_variant.rs:51:1
@@ -82,9 +78,8 @@ LL | | }
82
78
|
83
79
help: consider boxing the large fields to reduce the total size of the enum
84
80
|
85
- LL - StructLikeLarge2 { x: [i32; 8000] },
86
- LL + StructLikeLarge2 { x: Box<[i32; 8000]> },
87
- |
81
+ LL | StructLikeLarge2 { x: Box<[i32; 8000]> },
82
+ | ++++ +
88
83
89
84
error: large size difference between variants
90
85
--> tests/ui/large_enum_variant.rs:67:1
@@ -100,9 +95,8 @@ LL | | }
100
95
|
101
96
help: consider boxing the large fields to reduce the total size of the enum
102
97
|
103
- LL - B([u8; 1255]),
104
- LL + B(Box<[u8; 1255]>),
105
- |
98
+ LL | B(Box<[u8; 1255]>),
99
+ | ++++ +
106
100
107
101
error: large size difference between variants
108
102
--> tests/ui/large_enum_variant.rs:73:1
@@ -117,9 +111,8 @@ LL | | }
117
111
|
118
112
help: consider boxing the large fields to reduce the total size of the enum
119
113
|
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
+ | ++++ + ++++ +
123
116
124
117
error: large size difference between variants
125
118
--> tests/ui/large_enum_variant.rs:78:1
@@ -134,9 +127,8 @@ LL | | }
134
127
|
135
128
help: consider boxing the large fields to reduce the total size of the enum
136
129
|
137
- LL - B(Struct2),
138
- LL + B(Box<Struct2>),
139
- |
130
+ LL | B(Box<Struct2>),
131
+ | ++++ +
140
132
141
133
error: large size difference between variants
142
134
--> tests/ui/large_enum_variant.rs:83:1
@@ -151,9 +143,8 @@ LL | | }
151
143
|
152
144
help: consider boxing the large fields to reduce the total size of the enum
153
145
|
154
- LL - B(Struct2),
155
- LL + B(Box<Struct2>),
156
- |
146
+ LL | B(Box<Struct2>),
147
+ | ++++ +
157
148
158
149
error: large size difference between variants
159
150
--> tests/ui/large_enum_variant.rs:88:1
@@ -168,9 +159,8 @@ LL | | }
168
159
|
169
160
help: consider boxing the large fields to reduce the total size of the enum
170
161
|
171
- LL - B(Struct2),
172
- LL + B(Box<Struct2>),
173
- |
162
+ LL | B(Box<Struct2>),
163
+ | ++++ +
174
164
175
165
error: large size difference between variants
176
166
--> tests/ui/large_enum_variant.rs:103:1
@@ -251,9 +241,8 @@ LL | | }
251
241
|
252
242
help: consider boxing the large fields to reduce the total size of the enum
253
243
|
254
- LL - Large((T, [u8; 512])),
255
- LL + Large(Box<(T, [u8; 512])>),
256
- |
244
+ LL | Large(Box<(T, [u8; 512])>),
245
+ | ++++ +
257
246
258
247
error: large size difference between variants
259
248
--> tests/ui/large_enum_variant.rs:143:1
@@ -268,9 +257,8 @@ LL | | }
268
257
|
269
258
help: consider boxing the large fields to reduce the total size of the enum
270
259
|
271
- LL - Large([Foo<u64>; 64]),
272
- LL + Large(Box<[Foo<u64>; 64]>),
273
- |
260
+ LL | Large(Box<[Foo<u64>; 64]>),
261
+ | ++++ +
274
262
275
263
error: large size difference between variants
276
264
--> tests/ui/large_enum_variant.rs:153:1
@@ -285,9 +273,8 @@ LL | | }
285
273
|
286
274
help: consider boxing the large fields to reduce the total size of the enum
287
275
|
288
- LL - Error(PossiblyLargeEnumWithConst<256>),
289
- LL + Error(Box<PossiblyLargeEnumWithConst<256>>),
290
- |
276
+ LL | Error(Box<PossiblyLargeEnumWithConst<256>>),
277
+ | ++++ +
291
278
292
279
error: aborting due to 16 previous errors
293
280
0 commit comments