@@ -17,24 +17,6 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
17
17
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
18
18
= note: enum has no representation hint
19
19
20
- warning: `extern` block uses type `Option<(usize) is 1..=>`, which is not FFI-safe
21
- --> $DIR/clashing-extern-fn.rs:501:43
22
- |
23
- LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..)>;
24
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
25
- |
26
- = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
27
- = note: enum has no representation hint
28
-
29
- warning: `extern` block uses type `Option<NonZeroUsize>`, which is not FFI-safe
30
- --> $DIR/clashing-extern-fn.rs:505:51
31
- |
32
- LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
33
- | ^^^^^^^^^^^^^^^^^^^^ not FFI-safe
34
- |
35
- = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
36
- = note: enum has no representation hint
37
-
38
20
warning: `clash` redeclared with a different signature
39
21
--> $DIR/clashing-extern-fn.rs:13:13
40
22
|
@@ -276,20 +258,8 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
276
258
= note: expected `unsafe extern "C" fn() -> usize`
277
259
found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZero<usize>>>`
278
260
279
- warning: `pt_non_zero_usize_opt` redeclared with a different signature
280
- --> $DIR/clashing-extern-fn.rs:515:13
281
- |
282
- LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..)>;
283
- | ------------------------------------------------------------------ `pt_non_zero_usize_opt` previously declared here
284
- ...
285
- LL | fn pt_non_zero_usize_opt() -> usize;
286
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
287
- |
288
- = note: expected `unsafe extern "C" fn() -> Option<(usize) is 1..=>`
289
- found `unsafe extern "C" fn() -> usize`
290
-
291
261
warning: `pt_non_null_ptr` redeclared with a different signature
292
- --> $DIR/clashing-extern-fn.rs:517 :13
262
+ --> $DIR/clashing-extern-fn.rs:514 :13
293
263
|
294
264
LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
295
265
| ---------------------------------------------------- `pt_non_null_ptr` previously declared here
@@ -300,17 +270,5 @@ LL | fn pt_non_null_ptr() -> *const ();
300
270
= note: expected `unsafe extern "C" fn() -> (usize) is 1..=`
301
271
found `unsafe extern "C" fn() -> *const ()`
302
272
303
- warning: `pt_non_zero_usize_wrapper_opt` redeclared with a different signature
304
- --> $DIR/clashing-extern-fn.rs:520:13
305
- |
306
- LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
307
- | ----------------------------------------------------------- `pt_non_zero_usize_wrapper_opt` previously declared here
308
- ...
309
- LL | fn pt_non_zero_usize_wrapper_opt() -> usize;
310
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
311
- |
312
- = note: expected `unsafe extern "C" fn() -> Option<NonZeroUsize>`
313
- found `unsafe extern "C" fn() -> usize`
314
-
315
- warning: 27 warnings emitted
273
+ warning: 23 warnings emitted
316
274
0 commit comments