Skip to content

Commit

Permalink
Remove unused DiagCtxt::span_bug_no_panic.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Dec 19, 2023
1 parent 2863298 commit 006446e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1079,13 +1079,6 @@ impl DiagCtxt {
inner.good_path_delayed_bugs.push(DelayedDiagnostic::with_backtrace(diagnostic, backtrace));
}

#[track_caller]
pub fn span_bug_no_panic(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {
let mut diag = Diagnostic::new(Bug, msg);
diag.set_span(span);
self.emit_diagnostic(diag);
}

#[track_caller]
#[rustc_lint_diagnostics]
pub fn span_note(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {
Expand Down

0 comments on commit 006446e

Please sign in to comment.