about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-19 09:50:29 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-19 20:58:49 +1100
commit006446e373eae84f585d17a9945fe75a5f56c37e (patch)
treec3e1ce6aeb43e5d6373da1fa321e97d0b8324806 /compiler/rustc_errors/src
parent286329870dbae9c9e0f61f0c7a5d3d3963ce9f6a (diff)
downloadrust-006446e373eae84f585d17a9945fe75a5f56c37e.tar.gz
rust-006446e373eae84f585d17a9945fe75a5f56c37e.zip
Remove unused `DiagCtxt::span_bug_no_panic`.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 7dd9bd9c765..518a2ddb71d 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1080,13 +1080,6 @@ impl DiagCtxt {
     }
 
     #[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>) {
         self.struct_span_note(span, msg).emit()