@@ -17,33 +17,15 @@ 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
20
warning: `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
31
22
|
32
23
LL | fn pt_non_zero_usize_opt_full_range() -> Option<pattern_type!(usize is 0..)>;
33
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
34
25
|
35
26
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
36
27
= note: enum has no representation hint
37
28
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
-
47
29
warning: `clash` redeclared with a different signature
48
30
--> $DIR/clashing-extern-fn.rs:13:13
49
31
|
@@ -285,20 +267,8 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
285
267
= note: expected `unsafe extern "C" fn() -> usize`
286
268
found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZero<usize>>>`
287
269
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
-
300
270
warning: `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
302
272
|
303
273
LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
304
274
| ---------------------------------------------------- `pt_non_null_ptr` previously declared here
@@ -309,17 +279,5 @@ LL | fn pt_non_null_ptr() -> *const ();
309
279
= note: expected `unsafe extern "C" fn() -> (usize) is 1..=`
310
280
found `unsafe extern "C" fn() -> *const ()`
311
281
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
325
283
0 commit comments