|
1 |
| -error: `cfg` predicate key must be an identifier |
2 |
| - --> $DIR/cfg-target-compact-errors.rs:5:14 |
| 1 | +error[E0539]: malformed `cfg` attribute input |
| 2 | + --> $DIR/cfg-target-compact-errors.rs:5:1 |
3 | 3 | |
|
4 | 4 | LL | #[cfg(target(o::o))]
|
5 |
| - | ^^^^ |
| 5 | + | ^^^^^^^^^^^^^----^^^ |
| 6 | + | | | |
| 7 | + | | expected this to be of the form `... = "..."` |
| 8 | + | help: must be of the form: `#[cfg(predicate)]` |
6 | 9 |
|
7 |
| -error[E0565]: literal in `cfg` predicate value must be a string |
8 |
| - --> $DIR/cfg-target-compact-errors.rs:9:19 |
| 10 | +error[E0539]: malformed `cfg` attribute input |
| 11 | + --> $DIR/cfg-target-compact-errors.rs:9:1 |
9 | 12 | |
|
10 | 13 | LL | #[cfg(target(os = 8))]
|
11 |
| - | ^ |
| 14 | + | ^^^^^^^^^^^^^^^^^^-^^^ |
| 15 | + | | | |
| 16 | + | | expected a string literal here |
| 17 | + | help: must be of the form: `#[cfg(predicate)]` |
12 | 18 |
|
13 |
| -error[E0537]: invalid predicate `target_pointer` |
14 |
| - --> $DIR/cfg-target-compact-errors.rs:13:28 |
| 19 | +error[E0539]: malformed `cfg` attribute input |
| 20 | + --> $DIR/cfg-target-compact-errors.rs:13:1 |
15 | 21 | |
|
16 | 22 | LL | #[cfg(target(os = "linux", pointer(width = "64")))]
|
17 |
| - | ^^^^^^^^^^^^^^^^^^^^^ |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------^^^ |
| 24 | + | | | |
| 25 | + | | expected this to be of the form `... = "..."` |
| 26 | + | help: must be of the form: `#[cfg(predicate)]` |
18 | 27 |
|
19 |
| -error: `cfg` predicate key must be an identifier |
20 |
| - --> $DIR/cfg-target-compact-errors.rs:17:14 |
| 28 | +error[E0539]: malformed `cfg` attribute input |
| 29 | + --> $DIR/cfg-target-compact-errors.rs:17:1 |
21 | 30 | |
|
22 | 31 | LL | #[cfg(target(true))]
|
23 |
| - | ^^^^ |
| 32 | + | ^^^^^^^^^^^^^----^^^ |
| 33 | + | | | |
| 34 | + | | expected this to be of the form `... = "..."` |
| 35 | + | help: must be of the form: `#[cfg(predicate)]` |
| 36 | + |
| 37 | +error: `cfg` predicate key must be an identifier |
| 38 | + --> $DIR/cfg-target-compact-errors.rs:21:7 |
| 39 | + | |
| 40 | +LL | #[cfg(target(clippy::os = "linux"))] |
| 41 | + | ^^^^^^ |
24 | 42 |
|
25 |
| -error: aborting due to 4 previous errors |
| 43 | +error: aborting due to 5 previous errors |
26 | 44 |
|
27 |
| -Some errors have detailed explanations: E0537, E0565. |
28 |
| -For more information about an error, try `rustc --explain E0537`. |
| 45 | +For more information about this error, try `rustc --explain E0539`. |
0 commit comments