Change span_help calls to fileline_help where appropriate

This commit is contained in:
Ivan Radanov Ivanov
2015-02-24 16:07:54 +02:00
parent 24a840d489
commit 7496539a00
23 changed files with 76 additions and 50 deletions

View File

@@ -747,6 +747,10 @@ impl<'a> ExtCtxt<'a> {
self.print_backtrace();
self.parse_sess.span_diagnostic.span_help(sp, msg);
}
pub fn fileline_help(&self, sp: Span, msg: &str) {
self.print_backtrace();
self.parse_sess.span_diagnostic.fileline_help(sp, msg);
}
pub fn bug(&self, msg: &str) -> ! {
self.print_backtrace();
self.parse_sess.span_diagnostic.handler().bug(msg);