|
| 1 | +error: `extern` fn uses type `Option<(u32) is 0..>`, which is not FFI-safe |
| 2 | + --> $DIR/lint-pattern-types.rs:27:9 |
| 3 | + | |
| 4 | +LL | ao: Option<pattern_type!(u32 is 0..)>, |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 6 | + | |
| 7 | + = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum |
| 8 | + = note: enum has no representation hint |
| 9 | +note: the lint level is defined here |
| 10 | + --> $DIR/lint-pattern-types.rs:10:9 |
| 11 | + | |
| 12 | +LL | #![deny(improper_c_fn_definitions)] |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 14 | + |
| 15 | +error: `extern` fn uses type `(u32) is 1..`, which is not FFI-safe |
| 16 | + --> $DIR/lint-pattern-types.rs:28:8 |
| 17 | + | |
| 18 | +LL | b: pattern_type!(u32 is 1..), |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 20 | + | |
| 21 | + = help: consider using the base type instead, or wrapping `(u32) is 1..` in an `Option<_>` |
| 22 | + = note: integer-pattern types with one disallowed value and no `Option` wrapping cannot have their value be provided by non-rust code |
| 23 | + |
| 24 | +error: `extern` fn uses type `(u32) is 2..`, which is not FFI-safe |
| 25 | + --> $DIR/lint-pattern-types.rs:30:8 |
| 26 | + | |
| 27 | +LL | c: pattern_type!(u32 is 2..), |
| 28 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 29 | + | |
| 30 | + = help: consider using the base type instead |
| 31 | + = note: integer-pattern types with more than one disallowed value cannot have their value be provided by non-rust code |
| 32 | + |
| 33 | +error: `extern` fn uses type `(u32) is 2..`, which is not FFI-safe |
| 34 | + --> $DIR/lint-pattern-types.rs:31:9 |
| 35 | + | |
| 36 | +LL | co: Option<pattern_type!(u32 is 2..)>, |
| 37 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 38 | + | |
| 39 | + = help: consider using the base type instead |
| 40 | + = note: integer-pattern types with more than one disallowed value cannot have their value be provided by non-rust code |
| 41 | + |
| 42 | +error: `extern` fn uses type `i128`, which is not FFI-safe |
| 43 | + --> $DIR/lint-pattern-types.rs:36:9 |
| 44 | + | |
| 45 | +LL | e3: Option<pattern_type!(i128 is ..0x7fffffff_ffffffff_ffffffff_ffffffff)>, |
| 46 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 47 | + | |
| 48 | + = note: 128-bit integers don't currently have a known stable ABI |
| 49 | + |
| 50 | +error: `extern` fn uses type `u128`, which is not FFI-safe |
| 51 | + --> $DIR/lint-pattern-types.rs:38:9 |
| 52 | + | |
| 53 | +LL | e4: Option<pattern_type!(u128 is ..0xffffffff_ffffffff_ffffffff_ffffffff)>, |
| 54 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 55 | + | |
| 56 | + = note: 128-bit integers don't currently have a known stable ABI |
| 57 | + |
| 58 | +error: `extern` fn uses type `i128`, which is not FFI-safe |
| 59 | + --> $DIR/lint-pattern-types.rs:42:9 |
| 60 | + | |
| 61 | +LL | f3: Option<pattern_type!(i128 is -0x7fffffff_ffffffff_ffffffff_ffffffff..)>, |
| 62 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 63 | + | |
| 64 | + = note: 128-bit integers don't currently have a known stable ABI |
| 65 | + |
| 66 | +error: `extern` fn uses type `u128`, which is not FFI-safe |
| 67 | + --> $DIR/lint-pattern-types.rs:44:9 |
| 68 | + | |
| 69 | +LL | f4: Option<pattern_type!(u128 is 1..)>, |
| 70 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 71 | + | |
| 72 | + = note: 128-bit integers don't currently have a known stable ABI |
| 73 | + |
| 74 | +error: `extern` fn uses type `i128`, which is not FFI-safe |
| 75 | + --> $DIR/lint-pattern-types.rs:52:10 |
| 76 | + | |
| 77 | +LL | g31: Option<pattern_type!(i128 is ..-2 | -1..)>, |
| 78 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 79 | + | |
| 80 | + = note: 128-bit integers don't currently have a known stable ABI |
| 81 | + |
| 82 | +error: `extern` fn uses type `i128`, which is not FFI-safe |
| 83 | + --> $DIR/lint-pattern-types.rs:54:10 |
| 84 | + | |
| 85 | +LL | g32: Option<pattern_type!(i128 is ..-1 | 0..)>, |
| 86 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 87 | + | |
| 88 | + = note: 128-bit integers don't currently have a known stable ABI |
| 89 | + |
| 90 | +error: `extern` fn uses type `i128`, which is not FFI-safe |
| 91 | + --> $DIR/lint-pattern-types.rs:56:10 |
| 92 | + | |
| 93 | +LL | g33: Option<pattern_type!(i128 is ..0 | 1..)>, |
| 94 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 95 | + | |
| 96 | + = note: 128-bit integers don't currently have a known stable ABI |
| 97 | + |
| 98 | +error: `extern` fn uses type `i128`, which is not FFI-safe |
| 99 | + --> $DIR/lint-pattern-types.rs:58:10 |
| 100 | + | |
| 101 | +LL | g34: Option<pattern_type!(i128 is ..1 | 2..)>, |
| 102 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 103 | + | |
| 104 | + = note: 128-bit integers don't currently have a known stable ABI |
| 105 | + |
| 106 | +error: `extern` fn uses type `(usize) is 1..`, which is not FFI-safe |
| 107 | + --> $DIR/lint-pattern-types.rs:64:9 |
| 108 | + | |
| 109 | +LL | h1: pattern_type!(usize is 1..), |
| 110 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 111 | + | |
| 112 | + = help: consider using the base type instead, or wrapping `(usize) is 1..` in an `Option<_>` |
| 113 | + = note: integer-pattern types with one disallowed value and no `Option` wrapping cannot have their value be provided by non-rust code |
| 114 | + |
| 115 | +error: `extern` fn uses type `(usize) is 0..=4294967293`, which is not FFI-safe |
| 116 | + --> $DIR/lint-pattern-types.rs:65:9 |
| 117 | + | |
| 118 | +LL | h2: pattern_type!(usize is ..USZM1), |
| 119 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 120 | + | |
| 121 | + = help: consider using the base type instead |
| 122 | + = note: integer-pattern types with more than one disallowed value cannot have their value be provided by non-rust code |
| 123 | + |
| 124 | +error: `extern` fn uses type `(isize) is -2147483647..`, which is not FFI-safe |
| 125 | + --> $DIR/lint-pattern-types.rs:67:9 |
| 126 | + | |
| 127 | +LL | h4: pattern_type!(isize is ISZP1..), |
| 128 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 129 | + | |
| 130 | + = help: consider using the base type instead, or wrapping `(isize) is -2147483647..` in an `Option<_>` |
| 131 | + = note: integer-pattern types with one disallowed value and no `Option` wrapping cannot have their value be provided by non-rust code |
| 132 | + |
| 133 | +error: `extern` fn uses type `char`, which is not FFI-safe |
| 134 | + --> $DIR/lint-pattern-types.rs:69:8 |
| 135 | + | |
| 136 | +LL | h: pattern_type!(char is '\0'..), |
| 137 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 138 | + | |
| 139 | + = help: consider using `u32` or `libc::wchar_t` instead |
| 140 | + = note: the `char` type has no C equivalent |
| 141 | + |
| 142 | +error: `extern` fn uses type `(char) is '\0'..`, which is not FFI-safe |
| 143 | + --> $DIR/lint-pattern-types.rs:69:8 |
| 144 | + | |
| 145 | +LL | h: pattern_type!(char is '\0'..), |
| 146 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe |
| 147 | + | |
| 148 | + = help: consider using the base type instead |
| 149 | + = note: integer-pattern types with more than one disallowed value cannot have their value be provided by non-rust code |
| 150 | + |
| 151 | +error: aborting due to 17 previous errors |
| 152 | + |
0 commit comments