11error: `extern` block uses type `U`, which is not FFI-safe
2- --> $DIR/lint-ctypes-enum.rs:69 :14
2+ --> $DIR/lint-ctypes-enum.rs:68 :14
33 |
44LL | fn uf(x: U);
55 | ^ not FFI-safe
66 |
77 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
88 = note: enum has no representation hint
99note: the type is defined here
10- --> $DIR/lint-ctypes-enum.rs:10 :1
10+ --> $DIR/lint-ctypes-enum.rs:9 :1
1111 |
1212LL | enum U {
1313 | ^^^^^^
@@ -18,51 +18,51 @@ LL | #![deny(improper_ctypes)]
1818 | ^^^^^^^^^^^^^^^
1919
2020error: `extern` block uses type `B`, which is not FFI-safe
21- --> $DIR/lint-ctypes-enum.rs:70 :14
21+ --> $DIR/lint-ctypes-enum.rs:69 :14
2222 |
2323LL | fn bf(x: B);
2424 | ^ not FFI-safe
2525 |
2626 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
2727 = note: enum has no representation hint
2828note: the type is defined here
29- --> $DIR/lint-ctypes-enum.rs:13 :1
29+ --> $DIR/lint-ctypes-enum.rs:12 :1
3030 |
3131LL | enum B {
3232 | ^^^^^^
3333
3434error: `extern` block uses type `T`, which is not FFI-safe
35- --> $DIR/lint-ctypes-enum.rs:71 :14
35+ --> $DIR/lint-ctypes-enum.rs:70 :14
3636 |
3737LL | fn tf(x: T);
3838 | ^ not FFI-safe
3939 |
4040 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
4141 = note: enum has no representation hint
4242note: the type is defined here
43- --> $DIR/lint-ctypes-enum.rs:17 :1
43+ --> $DIR/lint-ctypes-enum.rs:16 :1
4444 |
4545LL | enum T {
4646 | ^^^^^^
4747
4848error: `extern` block uses type `u128`, which is not FFI-safe
49- --> $DIR/lint-ctypes-enum.rs:83 :31
49+ --> $DIR/lint-ctypes-enum.rs:82 :31
5050 |
5151LL | fn option_nonzero_u128(x: Option<num::NonZero<u128>>);
5252 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
5353 |
5454 = note: 128-bit integers don't currently have a known stable ABI
5555
5656error: `extern` block uses type `i128`, which is not FFI-safe
57- --> $DIR/lint-ctypes-enum.rs:90 :31
57+ --> $DIR/lint-ctypes-enum.rs:89 :31
5858 |
5959LL | fn option_nonzero_i128(x: Option<num::NonZero<i128>>);
6060 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
6161 |
6262 = note: 128-bit integers don't currently have a known stable ABI
6363
6464error: `extern` block uses type `Option<TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
65- --> $DIR/lint-ctypes-enum.rs:95 :36
65+ --> $DIR/lint-ctypes-enum.rs:94 :36
6666 |
6767LL | fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>>>);
6868 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -71,7 +71,7 @@ LL | fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>
7171 = note: enum has no representation hint
7272
7373error: `extern` block uses type `Option<Rust<NonZero<u8>>>`, which is not FFI-safe
74- --> $DIR/lint-ctypes-enum.rs:97 :28
74+ --> $DIR/lint-ctypes-enum.rs:96 :28
7575 |
7676LL | fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
7777 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -80,23 +80,23 @@ LL | fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
8080 = note: enum has no representation hint
8181
8282error: `extern` block uses type `u128`, which is not FFI-safe
83- --> $DIR/lint-ctypes-enum.rs:107 :33
83+ --> $DIR/lint-ctypes-enum.rs:106 :33
8484 |
8585LL | fn result_nonzero_u128_t(x: Result<num::NonZero<u128>, ()>);
8686 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
8787 |
8888 = note: 128-bit integers don't currently have a known stable ABI
8989
9090error: `extern` block uses type `i128`, which is not FFI-safe
91- --> $DIR/lint-ctypes-enum.rs:114 :33
91+ --> $DIR/lint-ctypes-enum.rs:113 :33
9292 |
9393LL | fn result_nonzero_i128_t(x: Result<num::NonZero<i128>, ()>);
9494 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
9595 |
9696 = note: 128-bit integers don't currently have a known stable ABI
9797
9898error: `extern` block uses type `Result<TransparentUnion<NonZero<u8>>, ()>`, which is not FFI-safe
99- --> $DIR/lint-ctypes-enum.rs:119 :38
99+ --> $DIR/lint-ctypes-enum.rs:118 :38
100100 |
101101LL | fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u8>>, ()>);
102102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -105,7 +105,7 @@ LL | fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u
105105 = note: enum has no representation hint
106106
107107error: `extern` block uses type `Result<Rust<NonZero<u8>>, ()>`, which is not FFI-safe
108- --> $DIR/lint-ctypes-enum.rs:121 :30
108+ --> $DIR/lint-ctypes-enum.rs:120 :30
109109 |
110110LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
111111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -114,7 +114,7 @@ LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
114114 = note: enum has no representation hint
115115
116116error: `extern` block uses type `Result<NonZero<u8>, U>`, which is not FFI-safe
117- --> $DIR/lint-ctypes-enum.rs:125 :51
117+ --> $DIR/lint-ctypes-enum.rs:124 :51
118118 |
119119LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>, U>);
120120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -123,7 +123,7 @@ LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>,
123123 = note: enum has no representation hint
124124
125125error: `extern` block uses type `Result<NonZero<u8>, B>`, which is not FFI-safe
126- --> $DIR/lint-ctypes-enum.rs:127 :53
126+ --> $DIR/lint-ctypes-enum.rs:126 :53
127127 |
128128LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>, B>);
129129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -132,7 +132,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>
132132 = note: enum has no representation hint
133133
134134error: `extern` block uses type `Result<NonZero<u8>, NonExhaustive>`, which is not FFI-safe
135- --> $DIR/lint-ctypes-enum.rs:129 :51
135+ --> $DIR/lint-ctypes-enum.rs:128 :51
136136 |
137137LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>, NonExhaustive>);
138138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -141,7 +141,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>,
141141 = note: enum has no representation hint
142142
143143error: `extern` block uses type `Result<NonZero<u8>, Field>`, which is not FFI-safe
144- --> $DIR/lint-ctypes-enum.rs:132 :49
144+ --> $DIR/lint-ctypes-enum.rs:131 :49
145145 |
146146LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Field>);
147147 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -150,7 +150,7 @@ LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Fi
150150 = note: enum has no representation hint
151151
152152error: `extern` block uses type `Result<Result<(), NonZero<u8>>, ()>`, which is not FFI-safe
153- --> $DIR/lint-ctypes-enum.rs:134 :30
153+ --> $DIR/lint-ctypes-enum.rs:133 :30
154154 |
155155LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
156156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -159,23 +159,23 @@ LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
159159 = note: enum has no representation hint
160160
161161error: `extern` block uses type `u128`, which is not FFI-safe
162- --> $DIR/lint-ctypes-enum.rs:145 :33
162+ --> $DIR/lint-ctypes-enum.rs:144 :33
163163 |
164164LL | fn result_nonzero_u128_e(x: Result<(), num::NonZero<u128>>);
165165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
166166 |
167167 = note: 128-bit integers don't currently have a known stable ABI
168168
169169error: `extern` block uses type `i128`, which is not FFI-safe
170- --> $DIR/lint-ctypes-enum.rs:152 :33
170+ --> $DIR/lint-ctypes-enum.rs:151 :33
171171 |
172172LL | fn result_nonzero_i128_e(x: Result<(), num::NonZero<i128>>);
173173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
174174 |
175175 = note: 128-bit integers don't currently have a known stable ABI
176176
177177error: `extern` block uses type `Result<(), TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
178- --> $DIR/lint-ctypes-enum.rs:157 :38
178+ --> $DIR/lint-ctypes-enum.rs:156 :38
179179 |
180180LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZero<u8>>>);
181181 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -184,7 +184,7 @@ LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZe
184184 = note: enum has no representation hint
185185
186186error: `extern` block uses type `Result<(), Rust<NonZero<u8>>>`, which is not FFI-safe
187- --> $DIR/lint-ctypes-enum.rs:159 :30
187+ --> $DIR/lint-ctypes-enum.rs:158 :30
188188 |
189189LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
190190 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -193,7 +193,7 @@ LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
193193 = note: enum has no representation hint
194194
195195error: `extern` block uses type `Result<U, NonZero<u8>>`, which is not FFI-safe
196- --> $DIR/lint-ctypes-enum.rs:163 :51
196+ --> $DIR/lint-ctypes-enum.rs:162 :51
197197 |
198198LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8>>);
199199 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -202,7 +202,7 @@ LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8
202202 = note: enum has no representation hint
203203
204204error: `extern` block uses type `Result<B, NonZero<u8>>`, which is not FFI-safe
205- --> $DIR/lint-ctypes-enum.rs:165 :53
205+ --> $DIR/lint-ctypes-enum.rs:164 :53
206206 |
207207LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<u8>>);
208208 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -211,7 +211,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<
211211 = note: enum has no representation hint
212212
213213error: `extern` block uses type `Result<NonExhaustive, NonZero<u8>>`, which is not FFI-safe
214- --> $DIR/lint-ctypes-enum.rs:167 :51
214+ --> $DIR/lint-ctypes-enum.rs:166 :51
215215 |
216216LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num::NonZero<u8>>);
217217 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -220,7 +220,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num
220220 = note: enum has no representation hint
221221
222222error: `extern` block uses type `Result<Field, NonZero<u8>>`, which is not FFI-safe
223- --> $DIR/lint-ctypes-enum.rs:170 :49
223+ --> $DIR/lint-ctypes-enum.rs:169 :49
224224 |
225225LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<u8>>);
226226 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -229,7 +229,7 @@ LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<
229229 = note: enum has no representation hint
230230
231231error: `extern` block uses type `Result<(), Result<(), NonZero<u8>>>`, which is not FFI-safe
232- --> $DIR/lint-ctypes-enum.rs:172 :30
232+ --> $DIR/lint-ctypes-enum.rs:171 :30
233233 |
234234LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
235235 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -238,7 +238,7 @@ LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
238238 = note: enum has no representation hint
239239
240240error: `extern` block uses type `Result<(), ()>`, which is not FFI-safe
241- --> $DIR/lint-ctypes-enum.rs:174 :27
241+ --> $DIR/lint-ctypes-enum.rs:173 :27
242242 |
243243LL | fn result_unit_t_e(x: Result<(), ()>);
244244 | ^^^^^^^^^^^^^^ not FFI-safe
0 commit comments