@@ -17,17 +17,8 @@ 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 `(usize) is 1..=`, which is not FFI-safe
21
- --> $DIR/clashing-extern-fn.rs:500:39
22
- |
23
- LL | fn pt_non_zero_usize() -> pattern_type!(usize is 1..);
24
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
25
- |
26
- = help: consider using the base type instead
27
- = note: pattern types have no C equivalent
28
-
29
20
warning: `extern` block uses type `Option<(usize) is 1..=>`, which is not FFI-safe
30
- --> $DIR/clashing-extern-fn.rs:502 :43
21
+ --> $DIR/clashing-extern-fn.rs:501 :43
31
22
|
32
23
LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..)>;
33
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -36,34 +27,16 @@ LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..
36
27
= note: enum has no representation hint
37
28
38
29
warning: `extern` block uses type `Option<(usize) is 0..=>`, which is not FFI-safe
39
- --> $DIR/clashing-extern-fn.rs:504 :54
30
+ --> $DIR/clashing-extern-fn.rs:503 :54
40
31
|
41
32
LL | fn pt_non_zero_usize_opt_full_range() -> Option<pattern_type!(usize is 0..)>;
42
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
43
34
|
44
35
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
45
36
= note: enum has no representation hint
46
37
47
- warning: `extern` block uses type `(usize) is 1..=`, which is not FFI-safe
48
- --> $DIR/clashing-extern-fn.rs:506:37
49
- |
50
- LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
51
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
52
- |
53
- = help: consider using the base type instead
54
- = note: pattern types have no C equivalent
55
-
56
- warning: `extern` block uses type `(usize) is 1..=`, which is not FFI-safe
57
- --> $DIR/clashing-extern-fn.rs:508:47
58
- |
59
- LL | fn pt_non_zero_usize_wrapper() -> NonZeroUsize;
60
- | ^^^^^^^^^^^^ not FFI-safe
61
- |
62
- = help: consider using the base type instead
63
- = note: pattern types have no C equivalent
64
-
65
38
warning: `extern` block uses type `Option<NonZeroUsize>`, which is not FFI-safe
66
- --> $DIR/clashing-extern-fn.rs:510 :51
39
+ --> $DIR/clashing-extern-fn.rs:507 :51
67
40
|
68
41
LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
69
42
| ^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -313,7 +286,7 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
313
286
found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZero<usize>>>`
314
287
315
288
warning: `pt_non_zero_usize` redeclared with a different signature
316
- --> $DIR/clashing-extern-fn.rs:519 :13
289
+ --> $DIR/clashing-extern-fn.rs:516 :13
317
290
|
318
291
LL | fn pt_non_zero_usize() -> pattern_type!(usize is 1..);
319
292
| ------------------------------------------------------ `pt_non_zero_usize` previously declared here
@@ -325,7 +298,7 @@ LL | fn pt_non_zero_usize() -> usize;
325
298
found `unsafe extern "C" fn() -> usize`
326
299
327
300
warning: `pt_non_zero_usize_opt` redeclared with a different signature
328
- --> $DIR/clashing-extern-fn.rs:521 :13
301
+ --> $DIR/clashing-extern-fn.rs:518 :13
329
302
|
330
303
LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..)>;
331
304
| ------------------------------------------------------------------ `pt_non_zero_usize_opt` previously declared here
@@ -337,7 +310,7 @@ LL | fn pt_non_zero_usize_opt() -> usize;
337
310
found `unsafe extern "C" fn() -> usize`
338
311
339
312
warning: `pt_non_null_ptr` redeclared with a different signature
340
- --> $DIR/clashing-extern-fn.rs:523 :13
313
+ --> $DIR/clashing-extern-fn.rs:520 :13
341
314
|
342
315
LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
343
316
| ---------------------------------------------------- `pt_non_null_ptr` previously declared here
@@ -349,7 +322,7 @@ LL | fn pt_non_null_ptr() -> *const ();
349
322
found `unsafe extern "C" fn() -> *const ()`
350
323
351
324
warning: `pt_non_zero_usize_wrapper` redeclared with a different signature
352
- --> $DIR/clashing-extern-fn.rs:525 :13
325
+ --> $DIR/clashing-extern-fn.rs:522 :13
353
326
|
354
327
LL | fn pt_non_zero_usize_wrapper() -> NonZeroUsize;
355
328
| ----------------------------------------------- `pt_non_zero_usize_wrapper` previously declared here
@@ -361,7 +334,7 @@ LL | fn pt_non_zero_usize_wrapper() -> usize;
361
334
found `unsafe extern "C" fn() -> usize`
362
335
363
336
warning: `pt_non_zero_usize_wrapper_opt` redeclared with a different signature
364
- --> $DIR/clashing-extern-fn.rs:527 :13
337
+ --> $DIR/clashing-extern-fn.rs:524 :13
365
338
|
366
339
LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
367
340
| ----------------------------------------------------------- `pt_non_zero_usize_wrapper_opt` previously declared here
@@ -372,5 +345,5 @@ LL | fn pt_non_zero_usize_wrapper_opt() -> usize;
372
345
= note: expected `unsafe extern "C" fn() -> Option<NonZeroUsize>`
373
346
found `unsafe extern "C" fn() -> usize`
374
347
375
- warning: 33 warnings emitted
348
+ warning: 30 warnings emitted
376
349
0 commit comments