@@ -4,35 +4,24 @@ error: `repr(C)` enum discriminant does not fit into C `int`
44LL | A = 9223372036854775807, // i64::MAX
55 | ^
66 |
7- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8- = note: for more information, see issue #124403 <https://github.com/rust-lang/rust/issues/124403>
97 = note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
108 = help: use `repr($int_ty)` instead to explicitly set the size of this enum
11- note: the lint level is defined here
12- --> $DIR/repr-c-big-discriminant1.rs:6:9
13- |
14- LL | #![deny(repr_c_enums_larger_than_int)]
15- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169
1710error: `repr(C)` enum discriminant does not fit into C `int`
18- --> $DIR/repr-c-big-discriminant1.rs:24 :5
11+ --> $DIR/repr-c-big-discriminant1.rs:23 :5
1912 |
2013LL | A = -2147483649, // i32::MIN-1
2114 | ^
2215 |
23- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24- = note: for more information, see issue #124403 <https://github.com/rust-lang/rust/issues/124403>
2516 = note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
2617 = help: use `repr($int_ty)` instead to explicitly set the size of this enum
2718
2819error: `repr(C)` enum discriminant does not fit into C `int`
29- --> $DIR/repr-c-big-discriminant1.rs:34 :5
20+ --> $DIR/repr-c-big-discriminant1.rs:32 :5
3021 |
3122LL | A = I64_MAX as isize,
3223 | ^
3324 |
34- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
35- = note: for more information, see issue #124403 <https://github.com/rust-lang/rust/issues/124403>
3625 = note: `repr(C)` enums with big discriminants are non-portable, and their size in Rust might not match their size in C
3726 = help: use `repr($int_ty)` instead to explicitly set the size of this enum
3827
0 commit comments