fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.2 KiB42 linesraw
1error: `register_attr` only accepts identifiers
2  --> $DIR/register-attr-tool-fail.rs:7:18
3   |
4LL | #![register_attr(a::b)]
5   |                  ^^^^ not an identifier
6
7error: attribute `attr` was already registered
8  --> $DIR/register-attr-tool-fail.rs:10:24
9   |
10LL | #![register_attr(attr, attr)]
11   |                  ----  ^^^^
12   |                  |
13   |                  already registered here
14
15error: `register_tool` only accepts identifiers
16  --> $DIR/register-attr-tool-fail.rs:8:18
17   |
18LL | #![register_tool(a::b)]
19   |                  ^^^^ not an identifier
20
21error: tool `tool` was already registered
22  --> $DIR/register-attr-tool-fail.rs:11:24
23   |
24LL | #![register_tool(tool, tool)]
25   |                  ----  ^^^^
26   |                  |
27   |                  already registered here
28
29error: malformed `register_attr` attribute input
30  --> $DIR/register-attr-tool-fail.rs:4:1
31   |
32LL | #![register_attr]
33   | ^^^^^^^^^^^^^^^^^ help: must be of the form: `#[register_attr(attr1, attr2, ...)]`
34
35error: malformed `register_tool` attribute input
36  --> $DIR/register-attr-tool-fail.rs:5:1
37   |
38LL | #![register_tool]
39   | ^^^^^^^^^^^^^^^^^ help: must be of the form: `#[register_tool(tool1, tool2, ...)]`
40
41error: aborting due to 6 previous errors
42