@@ -58,50 +58,8 @@ note: the type is defined here
58
58
LL | enum T {
59
59
| ^^^^^^
60
60
61
- error: `extern` block uses type `U128`, which is not FFI-safe
62
- --> $DIR/lint-enum.rs:87:21
63
- |
64
- LL | fn repr_u128(x: U128);
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-enum.rs:44:1
70
- |
71
- LL | enum U128 {
72
- | ^^^^^^^^^
73
-
74
- error: `extern` block uses type `I128`, which is not FFI-safe
75
- --> $DIR/lint-enum.rs:88:21
76
- |
77
- LL | fn repr_i128(x: I128);
78
- | ^^^^ not FFI-safe
79
- |
80
- = note: 128-bit integers don't currently have a known stable ABI
81
- note: the type is defined here
82
- --> $DIR/lint-enum.rs:51:1
83
- |
84
- LL | enum I128 {
85
- | ^^^^^^^^^
86
-
87
- error: `extern` block uses type `u128`, which is not FFI-safe
88
- --> $DIR/lint-enum.rs:97:31
89
- |
90
- LL | fn option_nonzero_u128(x: Option<num::NonZero<u128>>);
91
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
92
- |
93
- = note: 128-bit integers don't currently have a known stable ABI
94
-
95
- error: `extern` block uses type `i128`, which is not FFI-safe
96
- --> $DIR/lint-enum.rs:104:31
97
- |
98
- LL | fn option_nonzero_i128(x: Option<num::NonZero<i128>>);
99
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
100
- |
101
- = note: 128-bit integers don't currently have a known stable ABI
102
-
103
61
error: `extern` block uses type `Option<TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
104
- --> $DIR/lint-enum.rs:109 :36
62
+ --> $DIR/lint-enum.rs:107 :36
105
63
|
106
64
LL | fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>>>);
107
65
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -110,7 +68,7 @@ LL | fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>
110
68
= note: enum has no representation hint
111
69
112
70
error: `extern` block uses type `Option<Rust<NonZero<u8>>>`, which is not FFI-safe
113
- --> $DIR/lint-enum.rs:111 :28
71
+ --> $DIR/lint-enum.rs:109 :28
114
72
|
115
73
LL | fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
116
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -119,32 +77,16 @@ LL | fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
119
77
= note: enum has no representation hint
120
78
121
79
error: `extern` block uses type `Option<u8>`, which is not FFI-safe
122
- --> $DIR/lint-enum.rs:112 :21
80
+ --> $DIR/lint-enum.rs:110 :21
123
81
|
124
82
LL | fn option_u8(x: Option<u8>);
125
83
| ^^^^^^^^^^ not FFI-safe
126
84
|
127
85
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
128
86
= note: enum has no representation hint
129
87
130
- error: `extern` block uses type `u128`, which is not FFI-safe
131
- --> $DIR/lint-enum.rs:122:33
132
- |
133
- LL | fn result_nonzero_u128_t(x: Result<num::NonZero<u128>, ()>);
134
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
135
- |
136
- = note: 128-bit integers don't currently have a known stable ABI
137
-
138
- error: `extern` block uses type `i128`, which is not FFI-safe
139
- --> $DIR/lint-enum.rs:129:33
140
- |
141
- LL | fn result_nonzero_i128_t(x: Result<num::NonZero<i128>, ()>);
142
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
143
- |
144
- = note: 128-bit integers don't currently have a known stable ABI
145
-
146
88
error: `extern` block uses type `Result<TransparentUnion<NonZero<u8>>, ()>`, which is not FFI-safe
147
- --> $DIR/lint-enum.rs:134 :38
89
+ --> $DIR/lint-enum.rs:130 :38
148
90
|
149
91
LL | fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u8>>, ()>);
150
92
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -153,7 +95,7 @@ LL | fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u
153
95
= note: enum has no representation hint
154
96
155
97
error: `extern` block uses type `Result<Rust<NonZero<u8>>, ()>`, which is not FFI-safe
156
- --> $DIR/lint-enum.rs:136 :30
98
+ --> $DIR/lint-enum.rs:132 :30
157
99
|
158
100
LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
159
101
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -162,7 +104,7 @@ LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
162
104
= note: enum has no representation hint
163
105
164
106
error: `extern` block uses type `Result<NonZero<u8>, U>`, which is not FFI-safe
165
- --> $DIR/lint-enum.rs:140 :51
107
+ --> $DIR/lint-enum.rs:136 :51
166
108
|
167
109
LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>, U>);
168
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -171,7 +113,7 @@ LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>,
171
113
= note: enum has no representation hint
172
114
173
115
error: `extern` block uses type `Result<NonZero<u8>, B>`, which is not FFI-safe
174
- --> $DIR/lint-enum.rs:142 :53
116
+ --> $DIR/lint-enum.rs:138 :53
175
117
|
176
118
LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>, B>);
177
119
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -180,7 +122,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>
180
122
= note: enum has no representation hint
181
123
182
124
error: `extern` block uses type `Result<NonZero<u8>, NonExhaustive>`, which is not FFI-safe
183
- --> $DIR/lint-enum.rs:144 :51
125
+ --> $DIR/lint-enum.rs:140 :51
184
126
|
185
127
LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>, NonExhaustive>);
186
128
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -189,7 +131,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>,
189
131
= note: enum has no representation hint
190
132
191
133
error: `extern` block uses type `Result<NonZero<u8>, Field>`, which is not FFI-safe
192
- --> $DIR/lint-enum.rs:147 :49
134
+ --> $DIR/lint-enum.rs:143 :49
193
135
|
194
136
LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Field>);
195
137
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -198,32 +140,16 @@ LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Fi
198
140
= note: enum has no representation hint
199
141
200
142
error: `extern` block uses type `Result<Result<(), NonZero<u8>>, ()>`, which is not FFI-safe
201
- --> $DIR/lint-enum.rs:149 :30
143
+ --> $DIR/lint-enum.rs:145 :30
202
144
|
203
145
LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
204
146
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
205
147
|
206
148
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
207
149
= note: enum has no representation hint
208
150
209
- error: `extern` block uses type `u128`, which is not FFI-safe
210
- --> $DIR/lint-enum.rs:160:33
211
- |
212
- LL | fn result_nonzero_u128_e(x: Result<(), num::NonZero<u128>>);
213
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
214
- |
215
- = note: 128-bit integers don't currently have a known stable ABI
216
-
217
- error: `extern` block uses type `i128`, which is not FFI-safe
218
- --> $DIR/lint-enum.rs:167:33
219
- |
220
- LL | fn result_nonzero_i128_e(x: Result<(), num::NonZero<i128>>);
221
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
222
- |
223
- = note: 128-bit integers don't currently have a known stable ABI
224
-
225
151
error: `extern` block uses type `Result<(), TransparentUnion<NonZero<u8>>>`, which is not FFI-safe
226
- --> $DIR/lint-enum.rs:172 :38
152
+ --> $DIR/lint-enum.rs:166 :38
227
153
|
228
154
LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZero<u8>>>);
229
155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -232,7 +158,7 @@ LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZe
232
158
= note: enum has no representation hint
233
159
234
160
error: `extern` block uses type `Result<(), Rust<NonZero<u8>>>`, which is not FFI-safe
235
- --> $DIR/lint-enum.rs:174 :30
161
+ --> $DIR/lint-enum.rs:168 :30
236
162
|
237
163
LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
238
164
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -241,7 +167,7 @@ LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
241
167
= note: enum has no representation hint
242
168
243
169
error: `extern` block uses type `Result<U, NonZero<u8>>`, which is not FFI-safe
244
- --> $DIR/lint-enum.rs:178 :51
170
+ --> $DIR/lint-enum.rs:172 :51
245
171
|
246
172
LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8>>);
247
173
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -250,7 +176,7 @@ LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8
250
176
= note: enum has no representation hint
251
177
252
178
error: `extern` block uses type `Result<B, NonZero<u8>>`, which is not FFI-safe
253
- --> $DIR/lint-enum.rs:180 :53
179
+ --> $DIR/lint-enum.rs:174 :53
254
180
|
255
181
LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<u8>>);
256
182
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -259,7 +185,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<
259
185
= note: enum has no representation hint
260
186
261
187
error: `extern` block uses type `Result<NonExhaustive, NonZero<u8>>`, which is not FFI-safe
262
- --> $DIR/lint-enum.rs:182 :51
188
+ --> $DIR/lint-enum.rs:176 :51
263
189
|
264
190
LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num::NonZero<u8>>);
265
191
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -268,7 +194,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num
268
194
= note: enum has no representation hint
269
195
270
196
error: `extern` block uses type `Result<Field, NonZero<u8>>`, which is not FFI-safe
271
- --> $DIR/lint-enum.rs:185 :49
197
+ --> $DIR/lint-enum.rs:179 :49
272
198
|
273
199
LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<u8>>);
274
200
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -277,7 +203,7 @@ LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<
277
203
= note: enum has no representation hint
278
204
279
205
error: `extern` block uses type `Result<(), Result<(), NonZero<u8>>>`, which is not FFI-safe
280
- --> $DIR/lint-enum.rs:187 :30
206
+ --> $DIR/lint-enum.rs:181 :30
281
207
|
282
208
LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
283
209
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -286,13 +212,13 @@ LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
286
212
= note: enum has no representation hint
287
213
288
214
error: `extern` block uses type `Result<(), ()>`, which is not FFI-safe
289
- --> $DIR/lint-enum.rs:189 :27
215
+ --> $DIR/lint-enum.rs:183 :27
290
216
|
291
217
LL | fn result_unit_t_e(x: Result<(), ()>);
292
218
| ^^^^^^^^^^^^^^ not FFI-safe
293
219
|
294
220
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
295
221
= note: enum has no representation hint
296
222
297
- error: aborting due to 30 previous errors
223
+ error: aborting due to 22 previous errors
298
224
0 commit comments