about summary refs log tree commit diff
path: root/tests/ui/tool-attributes
diff options
context:
space:
mode:
authorTom Martin <tom.martin1239@gmail.com>2023-03-30 21:43:32 +0100
committerTom Martin <tom.martin1239@gmail.com>2023-03-30 21:43:32 +0100
commit10c36445ff13625186d924250b3ba9c4b90b23f9 (patch)
treeffa3e8cd67887ced6af5916c12d5f61935377bae /tests/ui/tool-attributes
parent42f2be8a8c655695ecf2b56eebf023faf7d62463 (diff)
downloadrust-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.stderr12
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