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