auto merge of #11670 : sfackler/rust/extctxt-span-note, r=alexcrichton
It was the only span_* missing.
This commit is contained in:
commit
f8efde148c
1 changed files with 4 additions and 0 deletions
|
|
@ -412,6 +412,10 @@ impl<'a> ExtCtxt<'a> {
|
|||
self.print_backtrace();
|
||||
self.parse_sess.span_diagnostic.span_bug(sp, msg);
|
||||
}
|
||||
pub fn span_note(&self, sp: Span, msg: &str) {
|
||||
self.print_backtrace();
|
||||
self.parse_sess.span_diagnostic.span_note(sp, msg);
|
||||
}
|
||||
pub fn bug(&self, msg: &str) -> ! {
|
||||
self.print_backtrace();
|
||||
self.parse_sess.span_diagnostic.handler().bug(msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue