summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-ctypes-enum.stderr
blob: 8554e261778e7601d202c4fe2063d66cc8d04d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
error: `extern` block uses type `U`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:60:13
   |
LL |    fn uf(x: U);
   |             ^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
   = note: enum has no representation hint
note: the type is defined here
  --> $DIR/lint-ctypes-enum.rs:9:1
   |
LL | enum U {
   | ^^^^^^
note: the lint level is defined here
  --> $DIR/lint-ctypes-enum.rs:3:9
   |
LL | #![deny(improper_ctypes)]
   |         ^^^^^^^^^^^^^^^

error: `extern` block uses type `B`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:61:13
   |
LL |    fn bf(x: B);
   |             ^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
   = note: enum has no representation hint
note: the type is defined here
  --> $DIR/lint-ctypes-enum.rs:12:1
   |
LL | enum B {
   | ^^^^^^

error: `extern` block uses type `T`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:62:13
   |
LL |    fn tf(x: T);
   |             ^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
   = note: enum has no representation hint
note: the type is defined here
  --> $DIR/lint-ctypes-enum.rs:16:1
   |
LL | enum T {
   | ^^^^^^

error: `extern` block uses type `u128`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:74:23
   |
LL |    fn nonzero_u128(x: Option<num::NonZeroU128>);
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: 128-bit integers don't currently have a known stable ABI

error: `extern` block uses type `i128`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:81:23
   |
LL |    fn nonzero_i128(x: Option<num::NonZeroI128>);
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: 128-bit integers don't currently have a known stable ABI

error: `extern` block uses type `Option<TransparentUnion<NonZeroU8>>`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:86:28
   |
LL |    fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
   = note: enum has no representation hint

error: `extern` block uses type `Option<Rust<NonZeroU8>>`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:88:20
   |
LL |    fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
   = note: enum has no representation hint

error: `extern` block uses type `Result<(), NonZeroI32>`, which is not FFI-safe
  --> $DIR/lint-ctypes-enum.rs:89:20
   |
LL |    fn no_result(x: Result<(), num::NonZeroI32>);
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
   = note: enum has no representation hint

error: aborting due to 8 previous errors