1
1
error: `extern` block uses type `U`, which is not FFI-safe
2
- --> $DIR/lint-ctypes-enum.rs:69 :14
2
+ --> $DIR/lint-ctypes-enum.rs:70 :14
3
3
|
4
4
LL | fn uf(x: U);
5
5
| ^ not FFI-safe
6
6
|
7
7
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
8
8
= note: enum has no representation hint
9
9
note: the type is defined here
10
- --> $DIR/lint-ctypes-enum.rs:10 :1
10
+ --> $DIR/lint-ctypes-enum.rs:11 :1
11
11
|
12
12
LL | enum U {
13
13
| ^^^^^^
@@ -18,51 +18,51 @@ LL | #![deny(improper_ctypes)]
18
18
| ^^^^^^^^^^^^^^^
19
19
20
20
error: `extern` block uses type `B`, which is not FFI-safe
21
- --> $DIR/lint-ctypes-enum.rs:70 :14
21
+ --> $DIR/lint-ctypes-enum.rs:71 :14
22
22
|
23
23
LL | fn bf(x: B);
24
24
| ^ not FFI-safe
25
25
|
26
26
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
27
27
= note: enum has no representation hint
28
28
note: the type is defined here
29
- --> $DIR/lint-ctypes-enum.rs:13 :1
29
+ --> $DIR/lint-ctypes-enum.rs:14 :1
30
30
|
31
31
LL | enum B {
32
32
| ^^^^^^
33
33
34
34
error: `extern` block uses type `T`, which is not FFI-safe
35
- --> $DIR/lint-ctypes-enum.rs:71 :14
35
+ --> $DIR/lint-ctypes-enum.rs:72 :14
36
36
|
37
37
LL | fn tf(x: T);
38
38
| ^ not FFI-safe
39
39
|
40
40
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
41
41
= note: enum has no representation hint
42
42
note: the type is defined here
43
- --> $DIR/lint-ctypes-enum.rs:17 :1
43
+ --> $DIR/lint-ctypes-enum.rs:18 :1
44
44
|
45
45
LL | enum T {
46
46
| ^^^^^^
47
47
48
48
error: `extern` block uses type `u128`, which is not FFI-safe
49
- --> $DIR/lint-ctypes-enum.rs:83 :31
49
+ --> $DIR/lint-ctypes-enum.rs:84 :31
50
50
|
51
51
LL | fn option_nonzero_u128(x: Option<num::NonZero<u128>>);
52
52
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
53
53
|
54
54
= note: 128-bit integers don't currently have a known stable ABI
55
55
56
56
error: `extern` block uses type `i128`, which is not FFI-safe
57
- --> $DIR/lint-ctypes-enum.rs:90 :31
57
+ --> $DIR/lint-ctypes-enum.rs:91 :31
58
58
|
59
59
LL | fn option_nonzero_i128(x: Option<num::NonZero<i128>>);
60
60
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
61
61
|
62
62
= note: 128-bit integers don't currently have a known stable ABI
63
63
64
64
error: `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:96 :36
66
66
|
67
67
LL | fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>>>);
68
68
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -71,7 +71,7 @@ LL | fn option_transparent_union(x: Option<TransparentUnion<num::NonZero<u8>
71
71
= note: enum has no representation hint
72
72
73
73
error: `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:98 :28
75
75
|
76
76
LL | fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
77
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -80,23 +80,23 @@ LL | fn option_repr_rust(x: Option<Rust<num::NonZero<u8>>>);
80
80
= note: enum has no representation hint
81
81
82
82
error: `extern` block uses type `u128`, which is not FFI-safe
83
- --> $DIR/lint-ctypes-enum.rs:107 :33
83
+ --> $DIR/lint-ctypes-enum.rs:108 :33
84
84
|
85
85
LL | fn result_nonzero_u128_t(x: Result<num::NonZero<u128>, ()>);
86
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
87
87
|
88
88
= note: 128-bit integers don't currently have a known stable ABI
89
89
90
90
error: `extern` block uses type `i128`, which is not FFI-safe
91
- --> $DIR/lint-ctypes-enum.rs:114 :33
91
+ --> $DIR/lint-ctypes-enum.rs:115 :33
92
92
|
93
93
LL | fn result_nonzero_i128_t(x: Result<num::NonZero<i128>, ()>);
94
94
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
95
95
|
96
96
= note: 128-bit integers don't currently have a known stable ABI
97
97
98
98
error: `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:120 :38
100
100
|
101
101
LL | fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u8>>, ()>);
102
102
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -105,7 +105,7 @@ LL | fn result_transparent_union_t(x: Result<TransparentUnion<num::NonZero<u
105
105
= note: enum has no representation hint
106
106
107
107
error: `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:122 :30
109
109
|
110
110
LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
111
111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -114,7 +114,7 @@ LL | fn result_repr_rust_t(x: Result<Rust<num::NonZero<u8>>, ()>);
114
114
= note: enum has no representation hint
115
115
116
116
error: `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:126 :51
118
118
|
119
119
LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>, U>);
120
120
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -123,7 +123,7 @@ LL | fn result_1zst_exhaustive_single_variant_t(x: Result<num::NonZero<u8>,
123
123
= note: enum has no representation hint
124
124
125
125
error: `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:128 :53
127
127
|
128
128
LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>, B>);
129
129
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -132,7 +132,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_t(x: Result<num::NonZero<u8>
132
132
= note: enum has no representation hint
133
133
134
134
error: `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:130 :51
136
136
|
137
137
LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>, NonExhaustive>);
138
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -141,7 +141,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_t(x: Result<num::NonZero<u8>,
141
141
= note: enum has no representation hint
142
142
143
143
error: `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:133 :49
145
145
|
146
146
LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Field>);
147
147
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -150,7 +150,7 @@ LL | fn result_1zst_exhaustive_single_field_t(x: Result<num::NonZero<u8>, Fi
150
150
= note: enum has no representation hint
151
151
152
152
error: `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:135 :30
154
154
|
155
155
LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
156
156
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -159,23 +159,23 @@ LL | fn result_cascading_t(x: Result<Result<(), num::NonZero<u8>>, ()>);
159
159
= note: enum has no representation hint
160
160
161
161
error: `extern` block uses type `u128`, which is not FFI-safe
162
- --> $DIR/lint-ctypes-enum.rs:145 :33
162
+ --> $DIR/lint-ctypes-enum.rs:146 :33
163
163
|
164
164
LL | fn result_nonzero_u128_e(x: Result<(), num::NonZero<u128>>);
165
165
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
166
166
|
167
167
= note: 128-bit integers don't currently have a known stable ABI
168
168
169
169
error: `extern` block uses type `i128`, which is not FFI-safe
170
- --> $DIR/lint-ctypes-enum.rs:152 :33
170
+ --> $DIR/lint-ctypes-enum.rs:153 :33
171
171
|
172
172
LL | fn result_nonzero_i128_e(x: Result<(), num::NonZero<i128>>);
173
173
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
174
174
|
175
175
= note: 128-bit integers don't currently have a known stable ABI
176
176
177
177
error: `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:158 :38
179
179
|
180
180
LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZero<u8>>>);
181
181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -184,7 +184,7 @@ LL | fn result_transparent_union_e(x: Result<(), TransparentUnion<num::NonZe
184
184
= note: enum has no representation hint
185
185
186
186
error: `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:160 :30
188
188
|
189
189
LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
190
190
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -193,7 +193,7 @@ LL | fn result_repr_rust_e(x: Result<(), Rust<num::NonZero<u8>>>);
193
193
= note: enum has no representation hint
194
194
195
195
error: `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:164 :51
197
197
|
198
198
LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8>>);
199
199
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -202,7 +202,7 @@ LL | fn result_1zst_exhaustive_single_variant_e(x: Result<U, num::NonZero<u8
202
202
= note: enum has no representation hint
203
203
204
204
error: `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:166 :53
206
206
|
207
207
LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<u8>>);
208
208
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -211,7 +211,7 @@ LL | fn result_1zst_exhaustive_multiple_variant_e(x: Result<B, num::NonZero<
211
211
= note: enum has no representation hint
212
212
213
213
error: `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:168 :51
215
215
|
216
216
LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num::NonZero<u8>>);
217
217
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -220,7 +220,7 @@ LL | fn result_1zst_non_exhaustive_no_variant_e(x: Result<NonExhaustive, num
220
220
= note: enum has no representation hint
221
221
222
222
error: `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:171 :49
224
224
|
225
225
LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<u8>>);
226
226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -229,7 +229,7 @@ LL | fn result_1zst_exhaustive_single_field_e(x: Result<Field, num::NonZero<
229
229
= note: enum has no representation hint
230
230
231
231
error: `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:173 :30
233
233
|
234
234
LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
235
235
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -238,7 +238,7 @@ LL | fn result_cascading_e(x: Result<(), Result<(), num::NonZero<u8>>>);
238
238
= note: enum has no representation hint
239
239
240
240
error: `extern` block uses type `Result<(), ()>`, which is not FFI-safe
241
- --> $DIR/lint-ctypes-enum.rs:174 :27
241
+ --> $DIR/lint-ctypes-enum.rs:175 :27
242
242
|
243
243
LL | fn result_unit_t_e(x: Result<(), ()>);
244
244
| ^^^^^^^^^^^^^^ not FFI-safe
0 commit comments