Add '!' to macro name suggestion, use fileline_help instead of span_help
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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!`?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user