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