@@ -17,33 +17,15 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
1717 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
1818 = note: enum has no representation hint
1919
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-
2920warning: `extern` block uses type `Option<(usize) is 0..=>`, which is not FFI-safe
30- --> $DIR/clashing-extern-fn.rs:503 :54
21+ --> $DIR/clashing-extern-fn.rs:502 :54
3122 |
3223LL | fn pt_non_zero_usize_opt_full_range() -> Option<pattern_type!(usize is 0..)>;
3324 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
3425 |
3526 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
3627 = note: enum has no representation hint
3728
38- warning: `extern` block uses type `Option<NonZeroUsize>`, which is not FFI-safe
39- --> $DIR/clashing-extern-fn.rs:507:51
40- |
41- LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
42- | ^^^^^^^^^^^^^^^^^^^^ not FFI-safe
43- |
44- = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
45- = note: enum has no representation hint
46-
4729warning: `clash` redeclared with a different signature
4830 --> $DIR/clashing-extern-fn.rs:13:13
4931 |
@@ -285,20 +267,8 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
285267 = note: expected `unsafe extern "C" fn() -> usize`
286268 found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZero<usize>>>`
287269
288- warning: `pt_non_zero_usize_opt` redeclared with a different signature
289- --> $DIR/clashing-extern-fn.rs:517:13
290- |
291- LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..)>;
292- | ------------------------------------------------------------------ `pt_non_zero_usize_opt` previously declared here
293- ...
294- LL | fn pt_non_zero_usize_opt() -> usize;
295- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
296- |
297- = note: expected `unsafe extern "C" fn() -> Option<(usize) is 1..=>`
298- found `unsafe extern "C" fn() -> usize`
299-
300270warning: `pt_non_null_ptr` redeclared with a different signature
301- --> $DIR/clashing-extern-fn.rs:519 :13
271+ --> $DIR/clashing-extern-fn.rs:516 :13
302272 |
303273LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
304274 | ---------------------------------------------------- `pt_non_null_ptr` previously declared here
@@ -309,17 +279,5 @@ LL | fn pt_non_null_ptr() -> *const ();
309279 = note: expected `unsafe extern "C" fn() -> (usize) is 1..=`
310280 found `unsafe extern "C" fn() -> *const ()`
311281
312- warning: `pt_non_zero_usize_wrapper_opt` redeclared with a different signature
313- --> $DIR/clashing-extern-fn.rs:522:13
314- |
315- LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
316- | ----------------------------------------------------------- `pt_non_zero_usize_wrapper_opt` previously declared here
317- ...
318- LL | fn pt_non_zero_usize_wrapper_opt() -> usize;
319- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
320- |
321- = note: expected `unsafe extern "C" fn() -> Option<NonZeroUsize>`
322- found `unsafe extern "C" fn() -> usize`
323-
324- warning: 28 warnings emitted
282+ warning: 24 warnings emitted
325283
0 commit comments