From d93bad8866e9bbb60e947a82630e86a66bb157d7 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 19 Dec 2023 09:50:29 +1100 Subject: [PATCH] Remove unused `DiagCtxt::span_bug_no_panic`. --- compiler/rustc_errors/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index ae086153647b4..3e89eed63a4bc 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1066,13 +1066,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, msg: impl Into) { - 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, msg: impl Into) {