@@ -113,8 +113,17 @@ LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
113113 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
114114 = note: enum has no representation hint
115115
116+ error: `extern` block uses type `Result<NonZero<u8>, U>`, which is not FFI-safe
117+ --> $DIR/lint-ctypes-enum.rs:124:51
118+ |
119+ LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>, U>);
120+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
121+ |
122+ = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
123+ = note: enum has no representation hint
124+
116125error: `extern` block uses type `Result<NonZero<u8>, B>`, which is not FFI-safe
117- --> $DIR/lint-ctypes-enum.rs:125 :53
126+ --> $DIR/lint-ctypes-enum.rs:126 :53
118127 |
119128LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>, B>);
120129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -123,7 +132,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>
123132 = note: enum has no representation hint
124133
125134error: `extern` block uses type `Result<NonZero<u8>, NonExhaustive>`, which is not FFI-safe
126- --> $DIR/lint-ctypes-enum.rs:127 :51
135+ --> $DIR/lint-ctypes-enum.rs:128 :51
127136 |
128137LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>, NonExhaustive>);
129138 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -132,7 +141,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>,
132141 = note: enum has no representation hint
133142
134143error: `extern` block uses type `Result<NonZero<u8>, Field>`, which is not FFI-safe
135- --> $DIR/lint-ctypes-enum.rs:130 :49
144+ --> $DIR/lint-ctypes-enum.rs:131 :49
136145 |
137146LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Field>);
138147 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -141,7 +150,7 @@ LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Fi
141150 = note: enum has no representation hint
142151
143152error: `extern` block uses type `Result<Result<(), NonZero<u8>>, ()>`, which is not FFI-safe
144- --> $DIR/lint-ctypes-enum.rs:132 :30
153+ --> $DIR/lint-ctypes-enum.rs:133 :30
145154 |
146155LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
147156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -150,23 +159,23 @@ LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
150159 = note: enum has no representation hint
151160
152161error: `extern` block uses type `u128`, which is not FFI-safe
153- --> $DIR/lint-ctypes-enum.rs:143 :33
162+ --> $DIR/lint-ctypes-enum.rs:144 :33
154163 |
155164LL | fn result_nonzero_u128_e(x: Result<(), num::NonZero<u128>>);
156165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
157166 |
158167 = note: 128-bit integers don't currently have a known stable ABI
159168
160169error: `extern` block uses type `i128`, which is not FFI-safe
161- --> $DIR/lint-ctypes-enum.rs:150 :33
170+ --> $DIR/lint-ctypes-enum.rs:151 :33
162171 |
163172LL | fn result_nonzero_i128_e(x: Result<(), num::NonZero<i128>>);
164173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
165174 |
166175 = note: 128-bit integers don't currently have a known stable ABI
167176
168177error: `extern` block uses type `Result<(), TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
169- --> $DIR/lint-ctypes-enum.rs:155 :38
178+ --> $DIR/lint-ctypes-enum.rs:156 :38
170179 |
171180LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZero<u8>>>);
172181 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -175,16 +184,25 @@ LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZe
175184 = note: enum has no representation hint
176185
177186error: `extern` block uses type `Result<(), Rust<NonZero<u8>>>`, which is not FFI-safe
178- --> $DIR/lint-ctypes-enum.rs:157 :30
187+ --> $DIR/lint-ctypes-enum.rs:158 :30
179188 |
180189LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
181190 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
182191 |
183192 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
184193 = note: enum has no representation hint
185194
195+ error: `extern` block uses type `Result<U, NonZero<u8>>`, which is not FFI-safe
196+ --> $DIR/lint-ctypes-enum.rs:162:51
197+ |
198+ LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8>>);
199+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
200+ |
201+ = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
202+ = note: enum has no representation hint
203+
186204error: `extern` block uses type `Result<B, NonZero<u8>>`, which is not FFI-safe
187- --> $DIR/lint-ctypes-enum.rs:162 :53
205+ --> $DIR/lint-ctypes-enum.rs:164 :53
188206 |
189207LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<u8>>);
190208 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -193,7 +211,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<
193211 = note: enum has no representation hint
194212
195213error: `extern` block uses type `Result<NonExhaustive, NonZero<u8>>`, which is not FFI-safe
196- --> $DIR/lint-ctypes-enum.rs:164 :51
214+ --> $DIR/lint-ctypes-enum.rs:166 :51
197215 |
198216LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num::NonZero<u8>>);
199217 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -202,7 +220,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num
202220 = note: enum has no representation hint
203221
204222error: `extern` block uses type `Result<Field, NonZero<u8>>`, which is not FFI-safe
205- --> $DIR/lint-ctypes-enum.rs:167 :49
223+ --> $DIR/lint-ctypes-enum.rs:169 :49
206224 |
207225LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<u8>>);
208226 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -211,13 +229,13 @@ LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<
211229 = note: enum has no representation hint
212230
213231error: `extern` block uses type `Result<(), Result<(), NonZero<u8>>>`, which is not FFI-safe
214- --> $DIR/lint-ctypes-enum.rs:169 :30
232+ --> $DIR/lint-ctypes-enum.rs:171 :30
215233 |
216234LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
217235 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
218236 |
219237 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
220238 = note: enum has no representation hint
221239
222- error: aborting due to 23 previous errors
240+ error: aborting due to 25 previous errors
223241
0 commit comments