Fix span_bug! backtraces

This commit is contained in:
Oli Scherer 2024-02-08 14:44:52 +00:00
parent 1280928a99
commit 6af2d3cc90

View File

@ -847,6 +847,7 @@ impl DiagCtxt {
self.struct_span_warn(span, msg).emit()
}
#[track_caller]
pub fn span_bug(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) -> ! {
self.struct_span_bug(span, msg).emit()
}