]> git.lizzy.rs Git - rust.git/blob - tests/ui/large_enum_variant.stderr
Reduce the hackiness of cargo-clippy
[rust.git] / tests / ui / large_enum_variant.stderr
1 error: large size difference between variants
2   --> $DIR/large_enum_variant.rs:10:5
3    |
4 10 |     B([i32; 8000]),
5    |     ^^^^^^^^^^^^^^
6    |
7    = note: `-D large-enum-variant` implied by `-D warnings`
8 help: consider boxing the large fields to reduce the total size of the enum
9    |
10 10 |     B(Box<[i32; 8000]>),
11    |       ^^^^^^^^^^^^^^^^
12
13 error: large size difference between variants
14   --> $DIR/large_enum_variant.rs:21:5
15    |
16 21 |     C(T, [i32; 8000]),
17    |     ^^^^^^^^^^^^^^^^^
18    |
19 help: consider boxing the large fields to reduce the total size of the enum
20   --> $DIR/large_enum_variant.rs:21:5
21    |
22 21 |     C(T, [i32; 8000]),
23    |     ^^^^^^^^^^^^^^^^^
24
25 error: large size difference between variants
26   --> $DIR/large_enum_variant.rs:34:5
27    |
28 34 |     ContainingLargeEnum(LargeEnum),
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30    |
31 help: consider boxing the large fields to reduce the total size of the enum
32    |
33 34 |     ContainingLargeEnum(Box<LargeEnum>),
34    |                         ^^^^^^^^^^^^^^
35
36 error: large size difference between variants
37   --> $DIR/large_enum_variant.rs:37:5
38    |
39 37 |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
40    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41    |
42 help: consider boxing the large fields to reduce the total size of the enum
43   --> $DIR/large_enum_variant.rs:37:5
44    |
45 37 |     ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
46    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
48 error: large size difference between variants
49   --> $DIR/large_enum_variant.rs:44:5
50    |
51 44 |     StructLikeLarge { x: [i32; 8000], y: i32 },
52    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53    |
54 help: consider boxing the large fields to reduce the total size of the enum
55   --> $DIR/large_enum_variant.rs:44:5
56    |
57 44 |     StructLikeLarge { x: [i32; 8000], y: i32 },
58    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
60 error: large size difference between variants
61   --> $DIR/large_enum_variant.rs:49:5
62    |
63 49 |     StructLikeLarge2 { x: [i32; 8000] },
64    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65    |
66 help: consider boxing the large fields to reduce the total size of the enum
67    |
68 49 |     StructLikeLarge2 { x: Box<[i32; 8000]> },
69    |                           ^^^^^^^^^^^^^^^^
70