Skip to content

Commit

Permalink
Remove DiagnosticBuilder::delay_as_bug_without_consuming.
Browse files Browse the repository at this point in the history
This is nice.
  • Loading branch information
nnethercote committed Jan 5, 2024
1 parent 0d81a10 commit b53aa9b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions compiler/rustc_errors/src/diagnostic_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SubdiagnosticMessage>));
forward!((span_labels, span_labels_mv)(spans: impl IntoIterator<Item = Span>, label: &str));
forward0!(pub fn note_expected_found(
Expand Down

0 comments on commit b53aa9b

Please sign in to comment.