Skip to content

Commit f8efde1

Browse files
committed
auto merge of #11670 : sfackler/rust/extctxt-span-note, r=alexcrichton
It was the only span_* missing.
2 parents 02d4572 + 88d0c18 commit f8efde1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libsyntax/ext/base.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ impl<'a> ExtCtxt<'a> {
412412
self.print_backtrace();
413413
self.parse_sess.span_diagnostic.span_bug(sp, msg);
414414
}
415+
pub fn span_note(&self, sp: Span, msg: &str) {
416+
self.print_backtrace();
417+
self.parse_sess.span_diagnostic.span_note(sp, msg);
418+
}
415419
pub fn bug(&self, msg: &str) -> ! {
416420
self.print_backtrace();
417421
self.parse_sess.span_diagnostic.handler().bug(msg);

0 commit comments

Comments
 (0)