fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
481 B21 linesraw
1error: unused attribute
2  --> $DIR/cfg-attr-empty-is-unused.rs:7:1
3   |
4LL | #[cfg_attr(FALSE,)]
5   | ^^^^^^^^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/cfg-attr-empty-is-unused.rs:5:9
9   |
10LL | #![deny(unused)]
11   |         ^^^^^^
12   = note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
13
14error: unused attribute
15  --> $DIR/cfg-attr-empty-is-unused.rs:10:1
16   |
17LL | #[cfg_attr(TRUE,)]
18   | ^^^^^^^^^^^^^^^^^^
19
20error: aborting due to 2 previous errors
21