Skip to content

Commit 86230dc

Browse files
committed
Bless
1 parent ed84d1d commit 86230dc

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

tests/ui/macros/macro-path-prelude-fail-4.stderr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ error: expected derive macro, found built-in attribute `inline`
22
--> $DIR/macro-path-prelude-fail-4.rs:1:10
33
|
44
LL | #[derive(inline)]
5-
| ^^^^^^
6-
| |
7-
| not a derive macro
8-
| help: Remove from the surrounding `derive()`
5+
| ^^^^^^ not a derive macro
6+
|
7+
help: Remove from the surrounding `derive()`
8+
--> $DIR/macro-path-prelude-fail-4.rs:1:10
99
|
10+
LL | #[derive(inline)]
11+
| ^^^^^^
1012
= help: Add as non-Derive macro
1113
`#[inline]`
1214

tests/ui/proc-macro/macro-namespace-reserved-2.stderr

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ error: expected derive macro, found attribute macro `my_macro_attr`
5656
--> $DIR/macro-namespace-reserved-2.rs:53:10
5757
|
5858
LL | #[derive(my_macro_attr)]
59-
| ^^^^^^^^^^^^^
60-
| |
61-
| not a derive macro
62-
| help: Remove from the surrounding `derive()`
59+
| ^^^^^^^^^^^^^ not a derive macro
60+
|
61+
help: Remove from the surrounding `derive()`
62+
--> $DIR/macro-namespace-reserved-2.rs:53:10
6363
|
64+
LL | #[derive(my_macro_attr)]
65+
| ^^^^^^^^^^^^^
6466
= help: Add as non-Derive macro
6567
`#[my_macro_attr]`
6668

@@ -92,11 +94,13 @@ error: expected derive macro, found macro `crate::my_macro`
9294
--> $DIR/macro-namespace-reserved-2.rs:50:10
9395
|
9496
LL | #[derive(crate::my_macro)]
95-
| ^^^^^^^^^^^^^^^
96-
| |
97-
| not a derive macro
98-
| help: Remove from the surrounding `derive()`
97+
| ^^^^^^^^^^^^^^^ not a derive macro
98+
|
99+
help: Remove from the surrounding `derive()`
100+
--> $DIR/macro-namespace-reserved-2.rs:50:10
99101
|
102+
LL | #[derive(crate::my_macro)]
103+
| ^^^^^^^^^^^^^^^
100104
= help: Add as non-Derive macro
101105
`#[crate::my_macro]`
102106

tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ error: expected derive macro, found tool attribute `rustfmt::skip`
22
--> $DIR/tool-attributes-misplaced-2.rs:1:10
33
|
44
LL | #[derive(rustfmt::skip)]
5-
| ^^^^^^^^^^^^^
6-
| |
7-
| not a derive macro
8-
| help: Remove from the surrounding `derive()`
5+
| ^^^^^^^^^^^^^ not a derive macro
6+
|
7+
help: Remove from the surrounding `derive()`
8+
--> $DIR/tool-attributes-misplaced-2.rs:1:10
99
|
10+
LL | #[derive(rustfmt::skip)]
11+
| ^^^^^^^^^^^^^
1012
= help: Add as non-Derive macro
1113
`#[rustfmt::skip]`
1214

0 commit comments

Comments
 (0)