]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/large_enum_variant.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / large_enum_variant.stderr
CommitLineData
ea8adc8c
XL
1error: large size difference between variants
2 --> $DIR/large_enum_variant.rs:10:5
3 |
410 | B([i32; 8000]),
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `-D large-enum-variant` implied by `-D warnings`
8help: consider boxing the large fields to reduce the total size of the enum
9 |
1010 | B(Box<[i32; 8000]>),
11 | ^^^^^^^^^^^^^^^^
12
13error: large size difference between variants
14 --> $DIR/large_enum_variant.rs:21:5
15 |
1621 | C(T, [i32; 8000]),
17 | ^^^^^^^^^^^^^^^^^
18 |
19help: consider boxing the large fields to reduce the total size of the enum
20 --> $DIR/large_enum_variant.rs:21:5
21 |
2221 | C(T, [i32; 8000]),
23 | ^^^^^^^^^^^^^^^^^
24
25error: large size difference between variants
26 --> $DIR/large_enum_variant.rs:34:5
27 |
2834 | ContainingLargeEnum(LargeEnum),
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ea8adc8c
XL
30help: consider boxing the large fields to reduce the total size of the enum
31 |
3234 | ContainingLargeEnum(Box<LargeEnum>),
33 | ^^^^^^^^^^^^^^
34
35error: large size difference between variants
36 --> $DIR/large_enum_variant.rs:37:5
37 |
3837 | ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 |
41help: consider boxing the large fields to reduce the total size of the enum
42 --> $DIR/large_enum_variant.rs:37:5
43 |
4437 | ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
47error: large size difference between variants
48 --> $DIR/large_enum_variant.rs:44:5
49 |
5044 | StructLikeLarge { x: [i32; 8000], y: i32 },
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 |
53help: consider boxing the large fields to reduce the total size of the enum
54 --> $DIR/large_enum_variant.rs:44:5
55 |
5644 | StructLikeLarge { x: [i32; 8000], y: i32 },
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
59error: large size difference between variants
60 --> $DIR/large_enum_variant.rs:49:5
61 |
6249 | StructLikeLarge2 { x: [i32; 8000] },
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ea8adc8c
XL
64help: consider boxing the large fields to reduce the total size of the enum
65 |
6649 | StructLikeLarge2 { x: Box<[i32; 8000]> },
67 | ^^^^^^^^^^^^^^^^
68
2c00a5a8
XL
69error: aborting due to 6 previous errors
70