@@ -17,24 +17,6 @@ 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-
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-
3820warning: `clash` redeclared with a different signature
3921 --> $DIR/clashing-extern-fn.rs:13:13
4022 |
@@ -276,20 +258,8 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
276258 = note: expected `unsafe extern "C" fn() -> usize`
277259 found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZero<usize>>>`
278260
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-
291261warning: `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
293263 |
294264LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
295265 | ---------------------------------------------------- `pt_non_null_ptr` previously declared here
@@ -300,17 +270,5 @@ LL | fn pt_non_null_ptr() -> *const ();
300270 = note: expected `unsafe extern "C" fn() -> (usize) is 1..=`
301271 found `unsafe extern "C" fn() -> *const ()`
302272
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
316274
0 commit comments