diff options
| author | Tom Martin <tom.martin1239@gmail.com> | 2023-04-01 03:52:58 +0100 |
|---|---|---|
| committer | Tom Martin <tom.martin1239@gmail.com> | 2023-04-01 03:52:58 +0100 |
| commit | 86230dcde6f68e049c0eb67e805d410fe0872422 (patch) | |
| tree | eb34518dea4f6c9db51f3b3c18bd8db1bf1256ed | |
| parent | ed84d1d9052912d4d948313be72a6dd50c2baa26 (diff) | |
| download | rust-86230dcde6f68e049c0eb67e805d410fe0872422.tar.gz rust-86230dcde6f68e049c0eb67e805d410fe0872422.zip | |
Bless
| -rw-r--r-- | tests/ui/macros/macro-path-prelude-fail-4.stderr | 10 | ||||
| -rw-r--r-- | tests/ui/proc-macro/macro-namespace-reserved-2.stderr | 20 | ||||
| -rw-r--r-- | tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr | 10 |
3 files changed, 24 insertions, 16 deletions
diff --git a/tests/ui/macros/macro-path-prelude-fail-4.stderr b/tests/ui/macros/macro-path-prelude-fail-4.stderr index cefe655b0f7..0dd67e6726c 100644 --- a/tests/ui/macros/macro-path-prelude-fail-4.stderr +++ b/tests/ui/macros/macro-path-prelude-fail-4.stderr @@ -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]` diff --git a/tests/ui/proc-macro/macro-namespace-reserved-2.stderr b/tests/ui/proc-macro/macro-namespace-reserved-2.stderr index 01814a30237..d0f829b5091 100644 --- a/tests/ui/proc-macro/macro-namespace-reserved-2.stderr +++ b/tests/ui/proc-macro/macro-namespace-reserved-2.stderr @@ -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]` diff --git a/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr b/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr index c1ed2618b2a..b1ecd528938 100644 --- a/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr +++ b/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr @@ -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]` |
