Remove DiagnosticBuilder::buffer.

All its uses have been removed.
This commit is contained in:
Nicholas Nethercote 2024-01-11 14:05:10 +11:00
parent 6656413a5c
commit 4fd1db1aa5

View File

@ -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