@@ -113,8 +113,17 @@ LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
113
113
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
114
114
= note: enum has no representation hint
115
115
116
+ error: `extern` block uses type `Result<NonZero<u8>, U>`, which is not FFI-safe
117
+ --> $DIR/lint-ctypes-enum.rs:125: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
+
116
125
error: `extern` block uses type `Result<NonZero<u8>, B>`, which is not FFI-safe
117
- --> $DIR/lint-ctypes-enum.rs:126 :53
126
+ --> $DIR/lint-ctypes-enum.rs:127 :53
118
127
|
119
128
LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>, B>);
120
129
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -123,7 +132,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>
123
132
= note: enum has no representation hint
124
133
125
134
error: `extern` block uses type `Result<NonZero<u8>, NonExhaustive>`, which is not FFI-safe
126
- --> $DIR/lint-ctypes-enum.rs:128 :51
135
+ --> $DIR/lint-ctypes-enum.rs:129 :51
127
136
|
128
137
LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>, NonExhaustive>);
129
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -132,7 +141,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>,
132
141
= note: enum has no representation hint
133
142
134
143
error: `extern` block uses type `Result<NonZero<u8>, Field>`, which is not FFI-safe
135
- --> $DIR/lint-ctypes-enum.rs:131 :49
144
+ --> $DIR/lint-ctypes-enum.rs:132 :49
136
145
|
137
146
LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Field>);
138
147
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -141,7 +150,7 @@ LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Fi
141
150
= note: enum has no representation hint
142
151
143
152
error: `extern` block uses type `Result<Result<(), NonZero<u8>>, ()>`, which is not FFI-safe
144
- --> $DIR/lint-ctypes-enum.rs:133 :30
153
+ --> $DIR/lint-ctypes-enum.rs:134 :30
145
154
|
146
155
LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
147
156
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -150,23 +159,23 @@ LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
150
159
= note: enum has no representation hint
151
160
152
161
error: `extern` block uses type `u128`, which is not FFI-safe
153
- --> $DIR/lint-ctypes-enum.rs:144 :33
162
+ --> $DIR/lint-ctypes-enum.rs:145 :33
154
163
|
155
164
LL | fn result_nonzero_u128_e(x: Result<(), num::NonZero<u128>>);
156
165
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
157
166
|
158
167
= note: 128-bit integers don't currently have a known stable ABI
159
168
160
169
error: `extern` block uses type `i128`, which is not FFI-safe
161
- --> $DIR/lint-ctypes-enum.rs:151 :33
170
+ --> $DIR/lint-ctypes-enum.rs:152 :33
162
171
|
163
172
LL | fn result_nonzero_i128_e(x: Result<(), num::NonZero<i128>>);
164
173
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
165
174
|
166
175
= note: 128-bit integers don't currently have a known stable ABI
167
176
168
177
error: `extern` block uses type `Result<(), TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
169
- --> $DIR/lint-ctypes-enum.rs:156 :38
178
+ --> $DIR/lint-ctypes-enum.rs:157 :38
170
179
|
171
180
LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZero<u8>>>);
172
181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -175,16 +184,25 @@ LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZe
175
184
= note: enum has no representation hint
176
185
177
186
error: `extern` block uses type `Result<(), Rust<NonZero<u8>>>`, which is not FFI-safe
178
- --> $DIR/lint-ctypes-enum.rs:158 :30
187
+ --> $DIR/lint-ctypes-enum.rs:159 :30
179
188
|
180
189
LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
181
190
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
182
191
|
183
192
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
184
193
= note: enum has no representation hint
185
194
195
+ error: `extern` block uses type `Result<U, NonZero<u8>>`, which is not FFI-safe
196
+ --> $DIR/lint-ctypes-enum.rs:163: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
+
186
204
error: `extern` block uses type `Result<B, NonZero<u8>>`, which is not FFI-safe
187
- --> $DIR/lint-ctypes-enum.rs:163 :53
205
+ --> $DIR/lint-ctypes-enum.rs:165 :53
188
206
|
189
207
LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<u8>>);
190
208
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -193,7 +211,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<
193
211
= note: enum has no representation hint
194
212
195
213
error: `extern` block uses type `Result<NonExhaustive, NonZero<u8>>`, which is not FFI-safe
196
- --> $DIR/lint-ctypes-enum.rs:165 :51
214
+ --> $DIR/lint-ctypes-enum.rs:167 :51
197
215
|
198
216
LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num::NonZero<u8>>);
199
217
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -202,7 +220,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num
202
220
= note: enum has no representation hint
203
221
204
222
error: `extern` block uses type `Result<Field, NonZero<u8>>`, which is not FFI-safe
205
- --> $DIR/lint-ctypes-enum.rs:168 :49
223
+ --> $DIR/lint-ctypes-enum.rs:170 :49
206
224
|
207
225
LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<u8>>);
208
226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -211,13 +229,13 @@ LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<
211
229
= note: enum has no representation hint
212
230
213
231
error: `extern` block uses type `Result<(), Result<(), NonZero<u8>>>`, which is not FFI-safe
214
- --> $DIR/lint-ctypes-enum.rs:170 :30
232
+ --> $DIR/lint-ctypes-enum.rs:172 :30
215
233
|
216
234
LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
217
235
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
218
236
|
219
237
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
220
238
= note: enum has no representation hint
221
239
222
- error: aborting due to 23 previous errors
240
+ error: aborting due to 25 previous errors
223
241
0 commit comments