]>
Commit | Line | Data |
---|---|---|
ea8adc8c XL |
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 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ea8adc8c XL |
30 | help: consider boxing the large fields to reduce the total size of the enum |
31 | | | |
32 | 34 | ContainingLargeEnum(Box<LargeEnum>), | |
33 | | ^^^^^^^^^^^^^^ | |
34 | ||
35 | error: large size difference between variants | |
36 | --> $DIR/large_enum_variant.rs:37:5 | |
37 | | | |
38 | 37 | ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]), | |
39 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
40 | | | |
41 | help: consider boxing the large fields to reduce the total size of the enum | |
42 | --> $DIR/large_enum_variant.rs:37:5 | |
43 | | | |
44 | 37 | ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]), | |
45 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
46 | ||
47 | error: large size difference between variants | |
48 | --> $DIR/large_enum_variant.rs:44:5 | |
49 | | | |
50 | 44 | StructLikeLarge { x: [i32; 8000], y: i32 }, | |
51 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
52 | | | |
53 | help: consider boxing the large fields to reduce the total size of the enum | |
54 | --> $DIR/large_enum_variant.rs:44:5 | |
55 | | | |
56 | 44 | StructLikeLarge { x: [i32; 8000], y: i32 }, | |
57 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
58 | ||
59 | error: large size difference between variants | |
60 | --> $DIR/large_enum_variant.rs:49:5 | |
61 | | | |
62 | 49 | StructLikeLarge2 { x: [i32; 8000] }, | |
63 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ea8adc8c XL |
64 | help: consider boxing the large fields to reduce the total size of the enum |
65 | | | |
66 | 49 | StructLikeLarge2 { x: Box<[i32; 8000]> }, | |
67 | | ^^^^^^^^^^^^^^^^ | |
68 | ||
2c00a5a8 XL |
69 | error: aborting due to 6 previous errors |
70 |