about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel E. Moelius III <sam@moeli.us>2022-03-30 12:52:31 -0400
committerSamuel E. Moelius III <sam@moeli.us>2022-03-30 12:52:31 -0400
commitaaf04dc0431aaf4be9f3125dd9cfcb80f2ae7e25 (patch)
treeb56ee15a28fac2780d24944e0e99d8043fbf459d
parentd6eb82c0a8d94d21fee110620ee4d0515ac198d3 (diff)
downloadrust-aaf04dc0431aaf4be9f3125dd9cfcb80f2ae7e25.tar.gz
rust-aaf04dc0431aaf4be9f3125dd9cfcb80f2ae7e25.zip
Fix error message in crate_in_macro_def.stderr
-rw-r--r--tests/ui/crate_in_macro_def.stderr8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/ui/crate_in_macro_def.stderr b/tests/ui/crate_in_macro_def.stderr
index 3f5e4870ad1..9ac5937dcc0 100644
--- a/tests/ui/crate_in_macro_def.stderr
+++ b/tests/ui/crate_in_macro_def.stderr
@@ -1,14 +1,10 @@
-error: reference to the macro call's crate, which is rarely intended
+error: `crate` references the macro call's crate
   --> $DIR/crate_in_macro_def.rs:19:28
    |
 LL |             println!("{}", crate::unhygienic::MESSAGE);
-   |                            ^^^^^
+   |                            ^^^^^ help: to reference the macro definition's crate, use: `$crate`
    |
    = note: `-D clippy::crate-in-macro-def` implied by `-D warnings`
-help: if reference to the macro definition's crate is intended, use
-   |
-LL |             println!("{}", $crate::unhygienic::MESSAGE);
-   |                            ~~~~~~
 
 error: aborting due to previous error