fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
904 B33 linesraw
1error: unused attribute
2  --> $DIR/register-attr-tool-unused.rs:6:1
3   |
4LL | #[register_attr(attr)]
5   | ^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/register-attr-tool-unused.rs:1:9
9   |
10LL | #![deny(unused)]
11   |         ^^^^^^
12   = note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
13
14error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
15  --> $DIR/register-attr-tool-unused.rs:6:1
16   |
17LL | #[register_attr(attr)]
18   | ^^^^^^^^^^^^^^^^^^^^^^
19
20error: unused attribute
21  --> $DIR/register-attr-tool-unused.rs:8:1
22   |
23LL | #[register_tool(tool)]
24   | ^^^^^^^^^^^^^^^^^^^^^^
25
26error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
27  --> $DIR/register-attr-tool-unused.rs:8:1
28   |
29LL | #[register_tool(tool)]
30   | ^^^^^^^^^^^^^^^^^^^^^^
31
32error: aborting due to 4 previous errors
33