@@ -54,33 +54,24 @@ LL | | G,
54
54
LL | | }
55
55
| |_^
56
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
57
error: `extern` block uses type `u128`, which is not FFI-safe
67
- --> $DIR/lint-ctypes-enum.rs:75 :23
58
+ --> $DIR/lint-ctypes-enum.rs:74 :23
68
59
|
69
60
LL | fn nonzero_u128(x: Option<num::NonZeroU128>);
70
61
| ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
71
62
|
72
63
= note: 128-bit integers don't currently have a known stable ABI
73
64
74
65
error: `extern` block uses type `i128`, which is not FFI-safe
75
- --> $DIR/lint-ctypes-enum.rs:82 :23
66
+ --> $DIR/lint-ctypes-enum.rs:81 :23
76
67
|
77
68
LL | fn nonzero_i128(x: Option<num::NonZeroI128>);
78
69
| ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
79
70
|
80
71
= note: 128-bit integers don't currently have a known stable ABI
81
72
82
73
error: `extern` block uses type `Option<TransparentUnion<NonZeroU8>>`, which is not FFI-safe
83
- --> $DIR/lint-ctypes-enum.rs:87 :28
74
+ --> $DIR/lint-ctypes-enum.rs:86 :28
84
75
|
85
76
LL | fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
86
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -89,7 +80,7 @@ LL | fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
89
80
= note: enum has no representation hint
90
81
91
82
error: `extern` block uses type `Option<Rust<NonZeroU8>>`, which is not FFI-safe
92
- --> $DIR/lint-ctypes-enum.rs:89 :20
83
+ --> $DIR/lint-ctypes-enum.rs:88 :20
93
84
|
94
85
LL | fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
95
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -98,13 +89,13 @@ LL | fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
98
89
= note: enum has no representation hint
99
90
100
91
error: `extern` block uses type `Result<(), NonZeroI32>`, which is not FFI-safe
101
- --> $DIR/lint-ctypes-enum.rs:90 :20
92
+ --> $DIR/lint-ctypes-enum.rs:89 :20
102
93
|
103
94
LL | fn no_result(x: Result<(), num::NonZeroI32>);
104
95
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
105
96
|
106
97
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
107
98
= note: enum has no representation hint
108
99
109
- error: aborting due to 9 previous errors
100
+ error: aborting due to 8 previous errors
110
101
0 commit comments