Skip to content

Commit 006446e

Browse files
committed
Remove unused DiagCtxt::span_bug_no_panic.
1 parent 2863298 commit 006446e

File tree

1 file changed

+0
-7
lines changed
  • compiler/rustc_errors/src

1 file changed

+0
-7
lines changed

compiler/rustc_errors/src/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1079,13 +1079,6 @@ impl DiagCtxt {
10791079
inner.good_path_delayed_bugs.push(DelayedDiagnostic::with_backtrace(diagnostic, backtrace));
10801080
}
10811081

1082-
#[track_caller]
1083-
pub fn span_bug_no_panic(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {
1084-
let mut diag = Diagnostic::new(Bug, msg);
1085-
diag.set_span(span);
1086-
self.emit_diagnostic(diag);
1087-
}
1088-
10891082
#[track_caller]
10901083
#[rustc_lint_diagnostics]
10911084
pub fn span_note(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {

0 commit comments

Comments
 (0)