We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6eb82c commit aaf04dcCopy full SHA for aaf04dc
tests/ui/crate_in_macro_def.stderr
@@ -1,14 +1,10 @@
1
-error: reference to the macro call's crate, which is rarely intended
+error: `crate` references the macro call's crate
2
--> $DIR/crate_in_macro_def.rs:19:28
3
|
4
LL | println!("{}", crate::unhygienic::MESSAGE);
5
- | ^^^^^
+ | ^^^^^ help: to reference the macro definition's crate, use: `$crate`
6
7
= note: `-D clippy::crate-in-macro-def` implied by `-D warnings`
8
-help: if reference to the macro definition's crate is intended, use
9
- |
10
-LL | println!("{}", $crate::unhygienic::MESSAGE);
11
- | ~~~~~~
12
13
error: aborting due to previous error
14
0 commit comments