Skip to content

Commit 88d0c18

Browse files
committed
Add span_note to ExtCtxt
It was the only span_* missing.
1 parent bf07c80 commit 88d0c18

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
@@ -384,6 +384,10 @@ impl<'a> ExtCtxt<'a> {
384384
self.print_backtrace();
385385
self.parse_sess.span_diagnostic.span_bug(sp, msg);
386386
}
387+
pub fn span_note(&self, sp: Span, msg: &str) {
388+
self.print_backtrace();
389+
self.parse_sess.span_diagnostic.span_note(sp, msg);
390+
}
387391
pub fn bug(&self, msg: &str) -> ! {
388392
self.print_backtrace();
389393
self.parse_sess.span_diagnostic.handler().bug(msg);

0 commit comments

Comments
 (0)