Skip to content

Commit d93bad8

Browse files
committed
Remove unused DiagCtxt::span_bug_no_panic.
1 parent 8f9607f commit d93bad8

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
@@ -1066,13 +1066,6 @@ impl DiagCtxt {
10661066
inner.good_path_delayed_bugs.push(DelayedDiagnostic::with_backtrace(diagnostic, backtrace));
10671067
}
10681068

1069-
#[track_caller]
1070-
pub fn span_bug_no_panic(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {
1071-
let mut diag = Diagnostic::new(Bug, msg);
1072-
diag.set_span(span);
1073-
self.emit_diagnostic(diag);
1074-
}
1075-
10761069
#[track_caller]
10771070
#[rustc_lint_diagnostics]
10781071
pub fn span_note(&self, span: impl Into<MultiSpan>, msg: impl Into<DiagnosticMessage>) {

0 commit comments

Comments
 (0)