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 6dde3f4 commit ec1fa6dCopy full SHA for ec1fa6d
src/librustc_resolve/macros.rs
@@ -649,9 +649,9 @@ impl<'a> Resolver<'a> {
649
if let Some(suggestion) = suggestion {
650
if suggestion != name {
651
if let MacroKind::Bang = kind {
652
- err.help(&format!("did you mean `{}!`?", suggestion));
+ err.span_suggestion(span, "did you mean", format!("{}!", suggestion));
653
} else {
654
- err.help(&format!("did you mean `{}`?", suggestion));
+ err.span_suggestion(span, "did you mean", suggestion.to_string());
655
}
656
657
err.help("have you added the `#[macro_use]` on the module/import?");
0 commit comments