mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Fix span_bug!
backtraces
This commit is contained in:
parent
1280928a99
commit
6af2d3cc90
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user