Skip to content

Commit 6af2d3c

Browse files
committed
Fix span_bug! backtraces
1 parent 1280928 commit 6af2d3c

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-0
lines changed

compiler/rustc_errors/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ impl DiagCtxt {
847847
self.struct_span_warn(span, msg).emit()
848848
}
849849

850+
#[track_caller]
850851
pub fn span_bug(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) -> ! {
851852
self.struct_span_bug(span, msg).emit()
852853
}

0 commit comments

Comments
 (0)