Add '!' to macro name suggestion, use fileline_help instead of span_help

This commit is contained in:
Florian Hartwig
2015-11-26 11:59:41 +01:00
parent ac0220cf4c
commit 9ba657cad5
2 changed files with 2 additions and 2 deletions

View File

@@ -790,7 +790,7 @@ impl<'a> ExtCtxt<'a> {
} }
} }
if let Some((suggestion, _)) = min { if let Some((suggestion, _)) = min {
self.span_help(span, &format!("did you mean `{}`?", suggestion)); self.fileline_help(span, &format!("did you mean `{}!`?", suggestion));
} }
} }
} }

View File

@@ -10,5 +10,5 @@
fn main() { fn main() {
printlx!("oh noes!"); //~ ERROR macro undefined printlx!("oh noes!"); //~ ERROR macro undefined
//~^ HELP did you mean `println`? //~^ HELP did you mean `println!`?
} }