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