We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
span_bug!
1 parent 1280928 commit 6af2d3cCopy full SHA for 6af2d3c
compiler/rustc_errors/src/lib.rs
@@ -847,6 +847,7 @@ impl DiagCtxt {
847
self.struct_span_warn(span, msg).emit()
848
}
849
850
+ #[track_caller]
851
pub fn span_bug(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) -> ! {
852
self.struct_span_bug(span, msg).emit()
853
0 commit comments