|
1 |
| -error: `extern` block uses type `U` which is not FFI-safe: enum has no representation hint |
| 1 | +error: `extern` block uses type `U`, which is not FFI-safe |
2 | 2 | --> $DIR/lint-ctypes-enum.rs:39:13
|
3 | 3 | |
|
4 | 4 | LL | fn uf(x: U);
|
5 |
| - | ^ |
| 5 | + | ^ not FFI-safe |
6 | 6 | |
|
7 | 7 | note: lint level defined here
|
8 | 8 | --> $DIR/lint-ctypes-enum.rs:3:9
|
9 | 9 | |
|
10 | 10 | LL | #![deny(improper_ctypes)]
|
11 | 11 | | ^^^^^^^^^^^^^^^
|
12 | 12 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 13 | + = note: enum has no representation hint |
13 | 14 | note: type defined here
|
14 | 15 | --> $DIR/lint-ctypes-enum.rs:9:1
|
15 | 16 | |
|
16 | 17 | LL | enum U { A }
|
17 | 18 | | ^^^^^^^^^^^^
|
18 | 19 |
|
19 |
| -error: `extern` block uses type `B` which is not FFI-safe: enum has no representation hint |
| 20 | +error: `extern` block uses type `B`, which is not FFI-safe |
20 | 21 | --> $DIR/lint-ctypes-enum.rs:40:13
|
21 | 22 | |
|
22 | 23 | LL | fn bf(x: B);
|
23 |
| - | ^ |
| 24 | + | ^ not FFI-safe |
24 | 25 | |
|
25 | 26 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 27 | + = note: enum has no representation hint |
26 | 28 | note: type defined here
|
27 | 29 | --> $DIR/lint-ctypes-enum.rs:10:1
|
28 | 30 | |
|
29 | 31 | LL | enum B { C, D }
|
30 | 32 | | ^^^^^^^^^^^^^^^
|
31 | 33 |
|
32 |
| -error: `extern` block uses type `T` which is not FFI-safe: enum has no representation hint |
| 34 | +error: `extern` block uses type `T`, which is not FFI-safe |
33 | 35 | --> $DIR/lint-ctypes-enum.rs:41:13
|
34 | 36 | |
|
35 | 37 | LL | fn tf(x: T);
|
36 |
| - | ^ |
| 38 | + | ^ not FFI-safe |
37 | 39 | |
|
38 | 40 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 41 | + = note: enum has no representation hint |
39 | 42 | note: type defined here
|
40 | 43 | --> $DIR/lint-ctypes-enum.rs:11:1
|
41 | 44 | |
|
42 | 45 | LL | enum T { E, F, G }
|
43 | 46 | | ^^^^^^^^^^^^^^^^^^
|
44 | 47 |
|
45 |
| -error: `extern` block uses type `std::option::Option<std::ptr::Unique<u8>>` which is not FFI-safe: enum has no representation hint |
| 48 | +error: `extern` block uses type `std::option::Option<std::ptr::Unique<u8>>`, which is not FFI-safe |
46 | 49 | --> $DIR/lint-ctypes-enum.rs:48:17
|
47 | 50 | |
|
48 | 51 | LL | fn unique(x: Option<std::ptr::Unique<u8>>);
|
49 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 52 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
50 | 53 | |
|
51 | 54 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 55 | + = note: enum has no representation hint |
52 | 56 |
|
53 |
| -error: `extern` block uses type `u128` which is not FFI-safe: 128-bit integers don't currently have a known stable ABI |
54 |
| - --> $DIR/lint-ctypes-enum.rs:53:23 |
| 57 | +error: `extern` block uses type `u128`, which is not FFI-safe |
| 58 | + --> $DIR/lint-ctypes-enum.rs:54:23 |
55 | 59 | |
|
56 | 60 | LL | fn nonzero_u128(x: Option<num::NonZeroU128>);
|
57 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 62 | + | |
| 63 | + = note: 128-bit integers don't currently have a known stable ABI |
58 | 64 |
|
59 |
| -error: `extern` block uses type `i128` which is not FFI-safe: 128-bit integers don't currently have a known stable ABI |
60 |
| - --> $DIR/lint-ctypes-enum.rs:60:23 |
| 65 | +error: `extern` block uses type `i128`, which is not FFI-safe |
| 66 | + --> $DIR/lint-ctypes-enum.rs:61:23 |
61 | 67 | |
|
62 | 68 | LL | fn nonzero_i128(x: Option<num::NonZeroI128>);
|
63 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 69 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 70 | + | |
| 71 | + = note: 128-bit integers don't currently have a known stable ABI |
64 | 72 |
|
65 |
| -error: `extern` block uses type `std::option::Option<TransparentUnion<std::num::NonZeroU8>>` which is not FFI-safe: enum has no representation hint |
66 |
| - --> $DIR/lint-ctypes-enum.rs:65:28 |
| 73 | +error: `extern` block uses type `std::option::Option<TransparentUnion<std::num::NonZeroU8>>`, which is not FFI-safe |
| 74 | + --> $DIR/lint-ctypes-enum.rs:66:28 |
67 | 75 | |
|
68 | 76 | LL | fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
|
69 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 77 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
70 | 78 | |
|
71 | 79 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 80 | + = note: enum has no representation hint |
72 | 81 |
|
73 |
| -error: `extern` block uses type `std::option::Option<Rust<std::num::NonZeroU8>>` which is not FFI-safe: enum has no representation hint |
74 |
| - --> $DIR/lint-ctypes-enum.rs:67:20 |
| 82 | +error: `extern` block uses type `std::option::Option<Rust<std::num::NonZeroU8>>`, which is not FFI-safe |
| 83 | + --> $DIR/lint-ctypes-enum.rs:68:20 |
75 | 84 | |
|
76 | 85 | LL | fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
|
77 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 86 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
78 | 87 | |
|
79 | 88 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 89 | + = note: enum has no representation hint |
80 | 90 |
|
81 |
| -error: `extern` block uses type `std::result::Result<(), std::num::NonZeroI32>` which is not FFI-safe: enum has no representation hint |
82 |
| - --> $DIR/lint-ctypes-enum.rs:68:20 |
| 91 | +error: `extern` block uses type `std::result::Result<(), std::num::NonZeroI32>`, which is not FFI-safe |
| 92 | + --> $DIR/lint-ctypes-enum.rs:69:20 |
83 | 93 | |
|
84 | 94 | LL | fn no_result(x: Result<(), num::NonZeroI32>);
|
85 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 95 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
86 | 96 | |
|
87 | 97 | = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
|
| 98 | + = note: enum has no representation hint |
88 | 99 |
|
89 | 100 | error: aborting due to 9 previous errors
|
90 | 101 |
|
0 commit comments