mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Remove DiagnosticBuilder::buffer
.
All its uses have been removed.
This commit is contained in:
parent
6656413a5c
commit
4fd1db1aa5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user