This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ struct Struct2 {
101101#[ derive( Copy , Clone ) ]
102102enum CopyableLargeEnum {
103103 A ( bool ) ,
104- B ( [ u128 ; 4000 ] ) ,
104+ B ( [ u64 ; 8000 ] ) ,
105105}
106106
107107enum ManuallyCopyLargeEnum {
108108 A ( bool ) ,
109- B ( [ u128 ; 4000 ] ) ,
109+ B ( [ u64 ; 8000 ] ) ,
110110}
111111
112112impl Clone for ManuallyCopyLargeEnum {
Original file line number Diff line number Diff line change @@ -167,8 +167,8 @@ error: large size difference between variants
167167LL | / enum CopyableLargeEnum {
168168LL | | A(bool),
169169 | | ------- 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
172172LL | | }
173173 | |_^ the entire enum is at least 64008 bytes
174174 |
@@ -180,17 +180,17 @@ LL | enum CopyableLargeEnum {
180180help: consider boxing the large fields to reduce the total size of the enum
181181 --> $DIR/large_enum_variant.rs:104:5
182182 |
183- LL | B([u128; 4000 ]),
184- | ^^^^^^^^^^^^^^^
183+ LL | B([u64; 8000 ]),
184+ | ^^^^^^^^^^^^^^
185185
186186error: large size difference between variants
187187 --> $DIR/large_enum_variant.rs:107:1
188188 |
189189LL | / enum ManuallyCopyLargeEnum {
190190LL | | A(bool),
191191 | | ------- 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
194194LL | | }
195195 | |_^ the entire enum is at least 64008 bytes
196196 |
@@ -202,8 +202,8 @@ LL | enum ManuallyCopyLargeEnum {
202202help: consider boxing the large fields to reduce the total size of the enum
203203 --> $DIR/large_enum_variant.rs:109:5
204204 |
205- LL | B([u128; 4000 ]),
206- | ^^^^^^^^^^^^^^^
205+ LL | B([u64; 8000 ]),
206+ | ^^^^^^^^^^^^^^
207207
208208error: large size difference between variants
209209 --> $DIR/large_enum_variant.rs:120:1
You can’t perform that action at this time.
0 commit comments