This commit is contained in:
Tom Martin 2023-04-01 03:52:58 +01:00
parent ed84d1d905
commit 86230dcde6
No known key found for this signature in database
GPG Key ID: 73A733F9629F5AC5
3 changed files with 24 additions and 16 deletions

View File

@ -2,11 +2,13 @@ error: expected derive macro, found built-in attribute `inline`
--> $DIR/macro-path-prelude-fail-4.rs:1:10
|
LL | #[derive(inline)]
| ^^^^^^
| |
| not a derive macro
| help: Remove from the surrounding `derive()`
| ^^^^^^ not a derive macro
|
help: Remove from the surrounding `derive()`
--> $DIR/macro-path-prelude-fail-4.rs:1:10
|
LL | #[derive(inline)]
| ^^^^^^
= help: Add as non-Derive macro
`#[inline]`

View File

@ -56,11 +56,13 @@ error: expected derive macro, found attribute macro `my_macro_attr`
--> $DIR/macro-namespace-reserved-2.rs:53:10
|
LL | #[derive(my_macro_attr)]
| ^^^^^^^^^^^^^
| |
| not a derive macro
| help: Remove from the surrounding `derive()`
| ^^^^^^^^^^^^^ not a derive macro
|
help: Remove from the surrounding `derive()`
--> $DIR/macro-namespace-reserved-2.rs:53:10
|
LL | #[derive(my_macro_attr)]
| ^^^^^^^^^^^^^
= help: Add as non-Derive macro
`#[my_macro_attr]`
@ -92,11 +94,13 @@ error: expected derive macro, found macro `crate::my_macro`
--> $DIR/macro-namespace-reserved-2.rs:50:10
|
LL | #[derive(crate::my_macro)]
| ^^^^^^^^^^^^^^^
| |
| not a derive macro
| help: Remove from the surrounding `derive()`
| ^^^^^^^^^^^^^^^ not a derive macro
|
help: Remove from the surrounding `derive()`
--> $DIR/macro-namespace-reserved-2.rs:50:10
|
LL | #[derive(crate::my_macro)]
| ^^^^^^^^^^^^^^^
= help: Add as non-Derive macro
`#[crate::my_macro]`

View File

@ -2,11 +2,13 @@ error: expected derive macro, found tool attribute `rustfmt::skip`
--> $DIR/tool-attributes-misplaced-2.rs:1:10
|
LL | #[derive(rustfmt::skip)]
| ^^^^^^^^^^^^^
| |
| not a derive macro
| help: Remove from the surrounding `derive()`
| ^^^^^^^^^^^^^ not a derive macro
|
help: Remove from the surrounding `derive()`
--> $DIR/tool-attributes-misplaced-2.rs:1:10
|
LL | #[derive(rustfmt::skip)]
| ^^^^^^^^^^^^^
= help: Add as non-Derive macro
`#[rustfmt::skip]`