Skip to content

Commit aaf04dc

Browse files
committed
Fix error message in crate_in_macro_def.stderr
1 parent d6eb82c commit aaf04dc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/ui/crate_in_macro_def.stderr

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
error: reference to the macro call's crate, which is rarely intended
1+
error: `crate` references the macro call's crate
22
--> $DIR/crate_in_macro_def.rs:19:28
33
|
44
LL | println!("{}", crate::unhygienic::MESSAGE);
5-
| ^^^^^
5+
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
66
|
77
= 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-
| ~~~~~~
128

139
error: aborting due to previous error
1410

0 commit comments

Comments
 (0)