File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ struct Struct2 {
101
101
#[ derive( Copy , Clone ) ]
102
102
enum CopyableLargeEnum {
103
103
A ( bool ) ,
104
- B ( [ u128 ; 4000 ] ) ,
104
+ B ( [ u64 ; 8000 ] ) ,
105
105
}
106
106
107
107
enum ManuallyCopyLargeEnum {
108
108
A ( bool ) ,
109
- B ( [ u128 ; 4000 ] ) ,
109
+ B ( [ u64 ; 8000 ] ) ,
110
110
}
111
111
112
112
impl Clone for ManuallyCopyLargeEnum {
Original file line number Diff line number Diff line change @@ -167,8 +167,8 @@ error: large size difference between variants
167
167
LL | / enum CopyableLargeEnum {
168
168
LL | | A(bool),
169
169
| | ------- the second-largest variant contains at least 1 bytes
170
- LL | | B([u128; 4000 ]),
171
- | | --------------- the largest variant contains at least 64000 bytes
170
+ LL | | B([u64; 8000 ]),
171
+ | | -------------- the largest variant contains at least 64000 bytes
172
172
LL | | }
173
173
| |_^ the entire enum is at least 64008 bytes
174
174
|
@@ -180,17 +180,17 @@ LL | enum CopyableLargeEnum {
180
180
help: consider boxing the large fields to reduce the total size of the enum
181
181
--> $DIR/large_enum_variant.rs:104:5
182
182
|
183
- LL | B([u128; 4000 ]),
184
- | ^^^^^^^^^^^^^^^
183
+ LL | B([u64; 8000 ]),
184
+ | ^^^^^^^^^^^^^^
185
185
186
186
error: large size difference between variants
187
187
--> $DIR/large_enum_variant.rs:107:1
188
188
|
189
189
LL | / enum ManuallyCopyLargeEnum {
190
190
LL | | A(bool),
191
191
| | ------- the second-largest variant contains at least 1 bytes
192
- LL | | B([u128; 4000 ]),
193
- | | --------------- the largest variant contains at least 64000 bytes
192
+ LL | | B([u64; 8000 ]),
193
+ | | -------------- the largest variant contains at least 64000 bytes
194
194
LL | | }
195
195
| |_^ the entire enum is at least 64008 bytes
196
196
|
@@ -202,8 +202,8 @@ LL | enum ManuallyCopyLargeEnum {
202
202
help: consider boxing the large fields to reduce the total size of the enum
203
203
--> $DIR/large_enum_variant.rs:109:5
204
204
|
205
- LL | B([u128; 4000 ]),
206
- | ^^^^^^^^^^^^^^^
205
+ LL | B([u64; 8000 ]),
206
+ | ^^^^^^^^^^^^^^
207
207
208
208
error: large size difference between variants
209
209
--> $DIR/large_enum_variant.rs:120:1
You can’t perform that action at this time.
0 commit comments