]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-ctypes-enum.stderr
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / lint / lint-ctypes-enum.stderr
1 error: `extern` block uses type `U`, which is not FFI-safe
2   --> $DIR/lint-ctypes-enum.rs:60:13
3    |
4 LL |    fn uf(x: U);
5    |             ^ not FFI-safe
6    |
7 note: the lint level is defined here
8   --> $DIR/lint-ctypes-enum.rs:3:9
9    |
10 LL | #![deny(improper_ctypes)]
11    |         ^^^^^^^^^^^^^^^
12    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
13    = note: enum has no representation hint
14 note: the type is defined here
15   --> $DIR/lint-ctypes-enum.rs:9:1
16    |
17 LL | / enum U {
18 LL | |     A,
19 LL | | }
20    | |_^
21
22 error: `extern` block uses type `B`, which is not FFI-safe
23   --> $DIR/lint-ctypes-enum.rs:61:13
24    |
25 LL |    fn bf(x: B);
26    |             ^ not FFI-safe
27    |
28    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
29    = note: enum has no representation hint
30 note: the type is defined here
31   --> $DIR/lint-ctypes-enum.rs:12:1
32    |
33 LL | / enum B {
34 LL | |     C,
35 LL | |     D,
36 LL | | }
37    | |_^
38
39 error: `extern` block uses type `T`, which is not FFI-safe
40   --> $DIR/lint-ctypes-enum.rs:62:13
41    |
42 LL |    fn tf(x: T);
43    |             ^ not FFI-safe
44    |
45    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
46    = note: enum has no representation hint
47 note: the type is defined here
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    | |_^
56
57 error: `extern` block uses type `Option<Unique<u8>>`, which is not FFI-safe
58   --> $DIR/lint-ctypes-enum.rs:69:17
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
67   --> $DIR/lint-ctypes-enum.rs:75:23
68    |
69 LL |    fn nonzero_u128(x: Option<num::NonZeroU128>);
70    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
71    |
72    = note: 128-bit integers don't currently have a known stable ABI
73
74 error: `extern` block uses type `i128`, which is not FFI-safe
75   --> $DIR/lint-ctypes-enum.rs:82:23
76    |
77 LL |    fn nonzero_i128(x: Option<num::NonZeroI128>);
78    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
79    |
80    = note: 128-bit integers don't currently have a known stable ABI
81
82 error: `extern` block uses type `Option<TransparentUnion<NonZeroU8>>`, which is not FFI-safe
83   --> $DIR/lint-ctypes-enum.rs:87:28
84    |
85 LL |    fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
86    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
87    |
88    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
89    = note: enum has no representation hint
90
91 error: `extern` block uses type `Option<Rust<NonZeroU8>>`, which is not FFI-safe
92   --> $DIR/lint-ctypes-enum.rs:89:20
93    |
94 LL |    fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
95    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
96    |
97    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
98    = note: enum has no representation hint
99
100 error: `extern` block uses type `Result<(), NonZeroI32>`, which is not FFI-safe
101   --> $DIR/lint-ctypes-enum.rs:90:20
102    |
103 LL |    fn no_result(x: Result<(), num::NonZeroI32>);
104    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
105    |
106    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
107    = note: enum has no representation hint
108
109 error: aborting due to 9 previous errors
110