Skip to content

Commit ec1fa6d

Browse files
committed
Change macro typo helps to suggestions
1 parent 6dde3f4 commit ec1fa6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_resolve/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,9 @@ impl<'a> Resolver<'a> {
649649
if let Some(suggestion) = suggestion {
650650
if suggestion != name {
651651
if let MacroKind::Bang = kind {
652-
err.help(&format!("did you mean `{}!`?", suggestion));
652+
err.span_suggestion(span, "did you mean", format!("{}!", suggestion));
653653
} else {
654-
err.help(&format!("did you mean `{}`?", suggestion));
654+
err.span_suggestion(span, "did you mean", suggestion.to_string());
655655
}
656656
} else {
657657
err.help("have you added the `#[macro_use]` on the module/import?");

0 commit comments

Comments
 (0)