Skip to content

Commit

Permalink
Add '!' to macro name suggestion, use fileline_help instead of span_help
Browse files Browse the repository at this point in the history
  • Loading branch information
fhartwig committed Nov 26, 2015
1 parent ac0220c commit 9ba657c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/base.rs
Expand Up @@ -790,7 +790,7 @@ impl<'a> ExtCtxt<'a> {
}
}
if let Some((suggestion, _)) = min {
self.span_help(span, &format!("did you mean `{}`?", suggestion));
self.fileline_help(span, &format!("did you mean `{}!`?", suggestion));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/macro-name-typo.rs
Expand Up @@ -10,5 +10,5 @@

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

0 comments on commit 9ba657c

Please sign in to comment.