Skip to content

Commit b53aa9b

Browse files
committed
Remove DiagnosticBuilder::delay_as_bug_without_consuming.
This is nice.
1 parent 0d81a10 commit b53aa9b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

compiler/rustc_errors/src/diagnostic_builder.rs

-7
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,6 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
370370
self.emit()
371371
}
372372

373-
/// Non-consuming variant of `delay_as_bug`.
374-
#[track_caller]
375-
pub fn delay_as_bug_without_consuming(&mut self) -> G::EmitResult {
376-
self.downgrade_to_delayed_bug();
377-
G::emit_producing_guarantee(self)
378-
}
379-
380373
forward!((span_label, span_label_mv)(span: Span, label: impl Into<SubdiagnosticMessage>));
381374
forward!((span_labels, span_labels_mv)(spans: impl IntoIterator<Item = Span>, label: &str));
382375
forward0!(pub fn note_expected_found(

0 commit comments

Comments
 (0)