From b53aa9b73df1cd22aa864b2fe67cc775d26cc87c Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 5 Jan 2024 17:25:58 +1100 Subject: [PATCH] Remove `DiagnosticBuilder::delay_as_bug_without_consuming`. This is nice. --- compiler/rustc_errors/src/diagnostic_builder.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs index 5c619141d0f6c..acb385e31d0e1 100644 --- a/compiler/rustc_errors/src/diagnostic_builder.rs +++ b/compiler/rustc_errors/src/diagnostic_builder.rs @@ -370,13 +370,6 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> { self.emit() } - /// Non-consuming variant of `delay_as_bug`. - #[track_caller] - pub fn delay_as_bug_without_consuming(&mut self) -> G::EmitResult { - self.downgrade_to_delayed_bug(); - G::emit_producing_guarantee(self) - } - forward!((span_label, span_label_mv)(span: Span, label: impl Into)); forward!((span_labels, span_labels_mv)(spans: impl IntoIterator, label: &str)); forward0!(pub fn note_expected_found(