38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:8:5
|
|
|
|
|
LL | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::enum-clike-unportable-variant` implied by `-D warnings`
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:15:5
|
|
|
|
|
LL | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:18:5
|
|
|
|
|
LL | A = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:25:5
|
|
|
|
|
LL | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:26:5
|
|
|
|
|
LL | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:28:5
|
|
|
|
|
LL | C = (std::i32::MIN as isize) - 1,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:34:5
|
|
|
|
|
LL | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:35:5
|
|
|
|
|
LL | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 8 previous errors
|
|
|