11error: large size difference between variants
2- --> $DIR/large_enum_variant.rs:7 :5
2+ --> $DIR/large_enum_variant.rs:12 :5
33 |
44LL | B([i32; 8000]),
55 | ^^^^^^^^^^^^^^ this variant is 32000 bytes
66 |
77 = note: `-D clippy::large-enum-variant` implied by `-D warnings`
88note: and the second-largest variant is 4 bytes:
9- --> $DIR/large_enum_variant.rs:6 :5
9+ --> $DIR/large_enum_variant.rs:11 :5
1010 |
1111LL | A(i32),
1212 | ^^^^^^
@@ -16,13 +16,13 @@ LL | B(Box<[i32; 8000]>),
1616 | ^^^^^^^^^^^^^^^^
1717
1818error: large size difference between variants
19- --> $DIR/large_enum_variant.rs:31 :5
19+ --> $DIR/large_enum_variant.rs:36 :5
2020 |
2121LL | ContainingLargeEnum(LargeEnum),
2222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this variant is 32004 bytes
2323 |
2424note: and the second-largest variant is 8 bytes:
25- --> $DIR/large_enum_variant.rs:30 :5
25+ --> $DIR/large_enum_variant.rs:35 :5
2626 |
2727LL | VariantOk(i32, u32),
2828 | ^^^^^^^^^^^^^^^^^^^
@@ -32,30 +32,30 @@ LL | ContainingLargeEnum(Box<LargeEnum>),
3232 | ^^^^^^^^^^^^^^
3333
3434error: large size difference between variants
35- --> $DIR/large_enum_variant.rs:41 :5
35+ --> $DIR/large_enum_variant.rs:46 :5
3636 |
3737LL | StructLikeLarge { x: [i32; 8000], y: i32 },
3838 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this variant is 32004 bytes
3939 |
4040note: and the second-largest variant is 8 bytes:
41- --> $DIR/large_enum_variant.rs:40 :5
41+ --> $DIR/large_enum_variant.rs:45 :5
4242 |
4343LL | VariantOk(i32, u32),
4444 | ^^^^^^^^^^^^^^^^^^^
4545help: consider boxing the large fields to reduce the total size of the enum
46- --> $DIR/large_enum_variant.rs:41 :5
46+ --> $DIR/large_enum_variant.rs:46 :5
4747 |
4848LL | StructLikeLarge { x: [i32; 8000], y: i32 },
4949 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050
5151error: large size difference between variants
52- --> $DIR/large_enum_variant.rs:46 :5
52+ --> $DIR/large_enum_variant.rs:51 :5
5353 |
5454LL | StructLikeLarge2 { x: [i32; 8000] },
5555 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this variant is 32000 bytes
5656 |
5757note: and the second-largest variant is 8 bytes:
58- --> $DIR/large_enum_variant.rs:45 :5
58+ --> $DIR/large_enum_variant.rs:50 :5
5959 |
6060LL | VariantOk(i32, u32),
6161 | ^^^^^^^^^^^^^^^^^^^
0 commit comments