Skip to content

Commit

Permalink
Fix span_bug! backtraces
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 8, 2024
1 parent 1280928 commit 6af2d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 6af2d3c

Please sign in to comment.