diff options
| author | Tom Martin <tom.martin1239@gmail.com> | 2023-03-30 21:43:32 +0100 |
|---|---|---|
| committer | Tom Martin <tom.martin1239@gmail.com> | 2023-03-30 21:43:32 +0100 |
| commit | 10c36445ff13625186d924250b3ba9c4b90b23f9 (patch) | |
| tree | ffa3e8cd67887ced6af5916c12d5f61935377bae /tests/ui/tool-attributes | |
| parent | 42f2be8a8c655695ecf2b56eebf023faf7d62463 (diff) | |
| download | rust-10c36445ff13625186d924250b3ba9c4b90b23f9.tar.gz rust-10c36445ff13625186d924250b3ba9c4b90b23f9.zip | |
Update non-derive macro error message to match suggestion
It's now split between two errors, one to remove the invalid derive macro and one suggesting adding a new non-derive macro
Diffstat (limited to 'tests/ui/tool-attributes')
| -rw-r--r-- | tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr b/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr index 6befa99f583..c1ed2618b2a 100644 --- a/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr +++ b/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr @@ -2,13 +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 + | ^^^^^^^^^^^^^ + | | + | not a derive macro + | help: Remove from the surrounding `derive()` | -help: remove the surrounding "derive()": - --> $DIR/tool-attributes-misplaced-2.rs:1:3 - | -LL | #[derive(rustfmt::skip)] - | ^^^^^^^ ^ + = help: Add as non-Derive macro + `#[rustfmt::skip]` error: expected macro, found tool attribute `rustfmt::skip` --> $DIR/tool-attributes-misplaced-2.rs:5:5 |
