@@ -45,50 +45,8 @@ note: the type is defined here
4545LL | enum T {
4646   | ^^^^^^
4747
48- error: `extern` block uses type `U128`, which is not FFI-safe
49-   --> $DIR/lint-ctypes-enum.rs:88:21
50-    |
51- LL |     fn repr_u128(x: U128);
52-    |                     ^^^^ not FFI-safe
53-    |
54-    = note: 128-bit integers don't currently have a known stable ABI
55- note: the type is defined here
56-   --> $DIR/lint-ctypes-enum.rs:44:1
57-    |
58- LL | enum U128 {
59-    | ^^^^^^^^^
60- 
61- error: `extern` block uses type `I128`, which is not FFI-safe
62-   --> $DIR/lint-ctypes-enum.rs:89:21
63-    |
64- LL |     fn repr_i128(x: I128);
65-    |                     ^^^^ not FFI-safe
66-    |
67-    = note: 128-bit integers don't currently have a known stable ABI
68- note: the type is defined here
69-   --> $DIR/lint-ctypes-enum.rs:51:1
70-    |
71- LL | enum I128 {
72-    | ^^^^^^^^^
73- 
74- error: `extern` block uses type `u128`, which is not FFI-safe
75-   --> $DIR/lint-ctypes-enum.rs:98:31
76-    |
77- LL |     fn option_nonzero_u128(x: Option<num::NonZero<u128>>);
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 `i128`, which is not FFI-safe
83-   --> $DIR/lint-ctypes-enum.rs:105:31
84-    |
85- LL |     fn option_nonzero_i128(x: Option<num::NonZero<i128>>);
86-    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
87-    |
88-    = note: 128-bit integers don't currently have a known stable ABI
89- 
9048error: `extern` block uses type `Option<TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
91-   --> $DIR/lint-ctypes-enum.rs:110 :36
49+   --> $DIR/lint-ctypes-enum.rs:108 :36
9250   |
9351LL |     fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>>>);
9452   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -97,7 +55,7 @@ LL |     fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>
9755   = note: enum has no representation hint
9856
9957error: `extern` block uses type `Option<Rust<NonZero<u8>>>`, which is not FFI-safe
100-   --> $DIR/lint-ctypes-enum.rs:112 :28
58+   --> $DIR/lint-ctypes-enum.rs:110 :28
10159   |
10260LL |     fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
10361   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -106,32 +64,16 @@ LL |     fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
10664   = note: enum has no representation hint
10765
10866error: `extern` block uses type `Option<u8>`, which is not FFI-safe
109-   --> $DIR/lint-ctypes-enum.rs:113 :21
67+   --> $DIR/lint-ctypes-enum.rs:111 :21
11068   |
11169LL |     fn option_u8(x: Option<u8>);
11270   |                     ^^^^^^^^^^ not FFI-safe
11371   |
11472   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
11573   = note: enum has no representation hint
11674
117- error: `extern` block uses type `u128`, which is not FFI-safe
118-   --> $DIR/lint-ctypes-enum.rs:123:33
119-    |
120- LL |     fn result_nonzero_u128_t(x: Result<num::NonZero<u128>, ()>);
121-    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
122-    |
123-    = note: 128-bit integers don't currently have a known stable ABI
124- 
125- error: `extern` block uses type `i128`, which is not FFI-safe
126-   --> $DIR/lint-ctypes-enum.rs:130:33
127-    |
128- LL |     fn result_nonzero_i128_t(x: Result<num::NonZero<i128>, ()>);
129-    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
130-    |
131-    = note: 128-bit integers don't currently have a known stable ABI
132- 
13375error: `extern` block uses type `Result<TransparentUnion<NonZero<u8>>, ()>`, which is not FFI-safe
134-   --> $DIR/lint-ctypes-enum.rs:135 :38
76+   --> $DIR/lint-ctypes-enum.rs:131 :38
13577   |
13678LL |     fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u8>>, ()>);
13779   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -140,7 +82,7 @@ LL |     fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u
14082   = note: enum has no representation hint
14183
14284error: `extern` block uses type `Result<Rust<NonZero<u8>>, ()>`, which is not FFI-safe
143-   --> $DIR/lint-ctypes-enum.rs:137 :30
85+   --> $DIR/lint-ctypes-enum.rs:133 :30
14486   |
14587LL |     fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
14688   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -149,7 +91,7 @@ LL |     fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
14991   = note: enum has no representation hint
15092
15193error: `extern` block uses type `Result<NonZero<u8>, U>`, which is not FFI-safe
152-   --> $DIR/lint-ctypes-enum.rs:141 :51
94+   --> $DIR/lint-ctypes-enum.rs:137 :51
15395   |
15496LL |     fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>, U>);
15597   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -158,7 +100,7 @@ LL |     fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>,
158100   = note: enum has no representation hint
159101
160102error: `extern` block uses type `Result<NonZero<u8>, B>`, which is not FFI-safe
161-   --> $DIR/lint-ctypes-enum.rs:143 :53
103+   --> $DIR/lint-ctypes-enum.rs:139 :53
162104   |
163105LL |     fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>, B>);
164106   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -167,7 +109,7 @@ LL |     fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>
167109   = note: enum has no representation hint
168110
169111error: `extern` block uses type `Result<NonZero<u8>, NonExhaustive>`, which is not FFI-safe
170-   --> $DIR/lint-ctypes-enum.rs:145 :51
112+   --> $DIR/lint-ctypes-enum.rs:141 :51
171113   |
172114LL |     fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>, NonExhaustive>);
173115   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -176,7 +118,7 @@ LL |     fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>,
176118   = note: enum has no representation hint
177119
178120error: `extern` block uses type `Result<NonZero<u8>, Field>`, which is not FFI-safe
179-   --> $DIR/lint-ctypes-enum.rs:148 :49
121+   --> $DIR/lint-ctypes-enum.rs:144 :49
180122   |
181123LL |     fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Field>);
182124   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -185,32 +127,16 @@ LL |     fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Fi
185127   = note: enum has no representation hint
186128
187129error: `extern` block uses type `Result<Result<(), NonZero<u8>>, ()>`, which is not FFI-safe
188-   --> $DIR/lint-ctypes-enum.rs:150 :30
130+   --> $DIR/lint-ctypes-enum.rs:146 :30
189131   |
190132LL |     fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
191133   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
192134   |
193135   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
194136   = note: enum has no representation hint
195137
196- error: `extern` block uses type `u128`, which is not FFI-safe
197-   --> $DIR/lint-ctypes-enum.rs:161:33
198-    |
199- LL |     fn result_nonzero_u128_e(x: Result<(), num::NonZero<u128>>);
200-    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
201-    |
202-    = note: 128-bit integers don't currently have a known stable ABI
203- 
204- error: `extern` block uses type `i128`, which is not FFI-safe
205-   --> $DIR/lint-ctypes-enum.rs:168:33
206-    |
207- LL |     fn result_nonzero_i128_e(x: Result<(), num::NonZero<i128>>);
208-    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
209-    |
210-    = note: 128-bit integers don't currently have a known stable ABI
211- 
212138error: `extern` block uses type `Result<(), TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
213-   --> $DIR/lint-ctypes-enum.rs:173 :38
139+   --> $DIR/lint-ctypes-enum.rs:167 :38
214140   |
215141LL |     fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZero<u8>>>);
216142   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -219,7 +145,7 @@ LL |     fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZe
219145   = note: enum has no representation hint
220146
221147error: `extern` block uses type `Result<(), Rust<NonZero<u8>>>`, which is not FFI-safe
222-   --> $DIR/lint-ctypes-enum.rs:175 :30
148+   --> $DIR/lint-ctypes-enum.rs:169 :30
223149   |
224150LL |     fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
225151   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -228,7 +154,7 @@ LL |     fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
228154   = note: enum has no representation hint
229155
230156error: `extern` block uses type `Result<U, NonZero<u8>>`, which is not FFI-safe
231-   --> $DIR/lint-ctypes-enum.rs:179 :51
157+   --> $DIR/lint-ctypes-enum.rs:173 :51
232158   |
233159LL |     fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8>>);
234160   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -237,7 +163,7 @@ LL |     fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8
237163   = note: enum has no representation hint
238164
239165error: `extern` block uses type `Result<B, NonZero<u8>>`, which is not FFI-safe
240-   --> $DIR/lint-ctypes-enum.rs:181 :53
166+   --> $DIR/lint-ctypes-enum.rs:175 :53
241167   |
242168LL |     fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<u8>>);
243169   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -246,7 +172,7 @@ LL |     fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<
246172   = note: enum has no representation hint
247173
248174error: `extern` block uses type `Result<NonExhaustive, NonZero<u8>>`, which is not FFI-safe
249-   --> $DIR/lint-ctypes-enum.rs:183 :51
175+   --> $DIR/lint-ctypes-enum.rs:177 :51
250176   |
251177LL |     fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num::NonZero<u8>>);
252178   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -255,7 +181,7 @@ LL |     fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num
255181   = note: enum has no representation hint
256182
257183error: `extern` block uses type `Result<Field, NonZero<u8>>`, which is not FFI-safe
258-   --> $DIR/lint-ctypes-enum.rs:186 :49
184+   --> $DIR/lint-ctypes-enum.rs:180 :49
259185   |
260186LL |     fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<u8>>);
261187   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -264,7 +190,7 @@ LL |     fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<
264190   = note: enum has no representation hint
265191
266192error: `extern` block uses type `Result<(), Result<(), NonZero<u8>>>`, which is not FFI-safe
267-   --> $DIR/lint-ctypes-enum.rs:188 :30
193+   --> $DIR/lint-ctypes-enum.rs:182 :30
268194   |
269195LL |     fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
270196   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -273,13 +199,13 @@ LL |     fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
273199   = note: enum has no representation hint
274200
275201error: `extern` block uses type `Result<(), ()>`, which is not FFI-safe
276-   --> $DIR/lint-ctypes-enum.rs:190 :27
202+   --> $DIR/lint-ctypes-enum.rs:184 :27
277203   |
278204LL |     fn result_unit_t_e(x: Result<(), ()>);
279205   |                           ^^^^^^^^^^^^^^ not FFI-safe
280206   |
281207   = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
282208   = note: enum has no representation hint
283209
284- error: aborting due to 29  previous errors
210+ error: aborting due to 21  previous errors
285211
0 commit comments