85 lines
2.4 KiB
Plaintext
85 lines
2.4 KiB
Plaintext
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:10:5
|
|
|
|
|
10 | B([i32; 8000]),
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/large_enum_variant.rs:6:9
|
|
|
|
|
6 | #![deny(large_enum_variant)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
| B(Box<[i32; 8000]>),
|
|
|
|
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:17:5
|
|
|
|
|
17 | B([i32; 8000]),
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
| B(Box<[i32; 8000]>),
|
|
|
|
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:21:5
|
|
|
|
|
21 | D(T, [i32; 8000]),
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
--> $DIR/large_enum_variant.rs:21:5
|
|
|
|
|
21 | D(T, [i32; 8000]),
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:35:5
|
|
|
|
|
35 | ContainingLargeEnum(LargeEnum),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
| ContainingLargeEnum(Box<LargeEnum>),
|
|
|
|
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:38:5
|
|
|
|
|
38 | ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
--> $DIR/large_enum_variant.rs:38:5
|
|
|
|
|
38 | ContainingMoreThanOneField(i32, [i32; 8000], [i32; 9500]),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:42:5
|
|
|
|
|
42 | StructLikeLarge { x: [i32; 8000], y: i32 },
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
--> $DIR/large_enum_variant.rs:42:5
|
|
|
|
|
42 | StructLikeLarge { x: [i32; 8000], y: i32 },
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: large enum variant found
|
|
--> $DIR/large_enum_variant.rs:44:5
|
|
|
|
|
44 | StructLikeLarge2 {
|
|
| _____^ starting here...
|
|
45 | | x:
|
|
46 | | [i32; 8000]
|
|
47 | |
|
|
48 | | },
|
|
| |_____^ ...ending here
|
|
|
|
|
help: consider boxing the large fields to reduce the total size of the enum
|
|
| Box<[i32; 8000]>
|
|
|
|
error: aborting due to 7 previous errors
|
|
|