Skip to content

Commit

Permalink
Remove DiagnosticBuilder::buffer.
Browse files Browse the repository at this point in the history
All its uses have been removed.
  • Loading branch information
nnethercote committed Jan 11, 2024
1 parent 6656413 commit 4fd1db1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/rustc_errors/src/diagnostic_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,6 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
self.take_diag()
}

/// Buffers the diagnostic for later emission.
pub fn buffer(self, buffered_diagnostics: &mut Vec<Diagnostic>) {
buffered_diagnostics.push(self.into_diagnostic());
}

/// Delay emission of this diagnostic as a bug.
///
/// This can be useful in contexts where an error indicates a bug but
Expand Down

0 comments on commit 4fd1db1

Please sign in to comment.