@@ -17,44 +17,17 @@ 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
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 `(usize) is 1..=`, which is not FFI-safe
39
- --> $DIR/clashing-extern-fn.rs:504:37
40
- |
41
- LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
42
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
43
- |
44
- = help: consider using the base type instead
45
- = note: pattern types have no C equivalent
46
-
47
- warning: `extern` block uses type `(usize) is 1..=`, which is not FFI-safe
48
- --> $DIR/clashing-extern-fn.rs:506:47
49
- |
50
- LL | fn pt_non_zero_usize_wrapper() -> NonZeroUsize;
51
- | ^^^^^^^^^^^^ not FFI-safe
52
- |
53
- = help: consider using the base type instead
54
- = note: pattern types have no C equivalent
55
-
56
29
warning: `extern` block uses type `Option<NonZeroUsize>`, which is not FFI-safe
57
- --> $DIR/clashing-extern-fn.rs:508 :51
30
+ --> $DIR/clashing-extern-fn.rs:505 :51
58
31
|
59
32
LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
60
33
| ^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -304,7 +277,7 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
304
277
found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZero<usize>>>`
305
278
306
279
warning: `pt_non_zero_usize` redeclared with a different signature
307
- --> $DIR/clashing-extern-fn.rs:517 :13
280
+ --> $DIR/clashing-extern-fn.rs:514 :13
308
281
|
309
282
LL | fn pt_non_zero_usize() -> pattern_type!(usize is 1..);
310
283
| ------------------------------------------------------ `pt_non_zero_usize` previously declared here
@@ -316,7 +289,7 @@ LL | fn pt_non_zero_usize() -> usize;
316
289
found `unsafe extern "C" fn() -> usize`
317
290
318
291
warning: `pt_non_zero_usize_opt` redeclared with a different signature
319
- --> $DIR/clashing-extern-fn.rs:519 :13
292
+ --> $DIR/clashing-extern-fn.rs:516 :13
320
293
|
321
294
LL | fn pt_non_zero_usize_opt() -> Option<pattern_type!(usize is 1..)>;
322
295
| ------------------------------------------------------------------ `pt_non_zero_usize_opt` previously declared here
@@ -328,7 +301,7 @@ LL | fn pt_non_zero_usize_opt() -> usize;
328
301
found `unsafe extern "C" fn() -> usize`
329
302
330
303
warning: `pt_non_null_ptr` redeclared with a different signature
331
- --> $DIR/clashing-extern-fn.rs:521 :13
304
+ --> $DIR/clashing-extern-fn.rs:518 :13
332
305
|
333
306
LL | fn pt_non_null_ptr() -> pattern_type!(usize is 1..);
334
307
| ---------------------------------------------------- `pt_non_null_ptr` previously declared here
@@ -340,7 +313,7 @@ LL | fn pt_non_null_ptr() -> *const ();
340
313
found `unsafe extern "C" fn() -> *const ()`
341
314
342
315
warning: `pt_non_zero_usize_wrapper` redeclared with a different signature
343
- --> $DIR/clashing-extern-fn.rs:523 :13
316
+ --> $DIR/clashing-extern-fn.rs:520 :13
344
317
|
345
318
LL | fn pt_non_zero_usize_wrapper() -> NonZeroUsize;
346
319
| ----------------------------------------------- `pt_non_zero_usize_wrapper` previously declared here
@@ -352,7 +325,7 @@ LL | fn pt_non_zero_usize_wrapper() -> usize;
352
325
found `unsafe extern "C" fn() -> usize`
353
326
354
327
warning: `pt_non_zero_usize_wrapper_opt` redeclared with a different signature
355
- --> $DIR/clashing-extern-fn.rs:525 :13
328
+ --> $DIR/clashing-extern-fn.rs:522 :13
356
329
|
357
330
LL | fn pt_non_zero_usize_wrapper_opt() -> Option<NonZeroUsize>;
358
331
| ----------------------------------------------------------- `pt_non_zero_usize_wrapper_opt` previously declared here
@@ -363,5 +336,5 @@ LL | fn pt_non_zero_usize_wrapper_opt() -> usize;
363
336
= note: expected `unsafe extern "C" fn() -> Option<NonZeroUsize>`
364
337
found `unsafe extern "C" fn() -> usize`
365
338
366
- warning: 32 warnings emitted
339
+ warning: 29 warnings emitted
367
340
0 commit comments