fork/rust

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

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

1.42.0
1.4 KiB52 linesraw
1error: cannot find derive macro `rustfmt` in this scope
2  --> $DIR/tool-attributes-misplaced-1.rs:4:10
3   |
4LL | #[derive(rustfmt)]
5   |          ^^^^^^^
6
7error: cannot find derive macro `rustfmt` in this scope
8  --> $DIR/tool-attributes-misplaced-1.rs:4:10
9   |
10LL | #[derive(rustfmt)]
11   |          ^^^^^^^
12
13error: cannot find attribute `rustfmt` in this scope
14  --> $DIR/tool-attributes-misplaced-1.rs:9:3
15   |
16LL | #[rustfmt]
17   |   ^^^^^^^
18
19error: cannot find macro `rustfmt` in this scope
20  --> $DIR/tool-attributes-misplaced-1.rs:15:5
21   |
22LL |     rustfmt!();
23   |     ^^^^^^^
24
25error[E0573]: expected type, found tool module `rustfmt`
26  --> $DIR/tool-attributes-misplaced-1.rs:1:10
27   |
28LL | type A = rustfmt;
29   |          ^^^^^^^ not a type
30
31error[E0573]: expected type, found tool attribute `rustfmt::skip`
32  --> $DIR/tool-attributes-misplaced-1.rs:2:10
33   |
34LL | type B = rustfmt::skip;
35   |          ^^^^^^^^^^^^^ not a type
36
37error[E0423]: expected value, found tool module `rustfmt`
38  --> $DIR/tool-attributes-misplaced-1.rs:14:5
39   |
40LL |     rustfmt;
41   |     ^^^^^^^ not a value
42
43error[E0423]: expected value, found tool attribute `rustfmt::skip`
44  --> $DIR/tool-attributes-misplaced-1.rs:17:5
45   |
46LL |     rustfmt::skip;
47   |     ^^^^^^^^^^^^^ not a value
48
49error: aborting due to 8 previous errors
50
51Some errors have detailed explanations: E0423, E0573.
52For more information about an error, try `rustc --explain E0423`.