about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-11 14:05:10 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-11 18:38:05 +1100
commit4fd1db1aa56fba038fd11f70aa6d5c56e0059930 (patch)
tree6cf5459b3f71595838de64b5c341188262ccff37 /compiler/rustc_errors/src
parent6656413a5c9beb774dfde16804aa523cf9dbf1b5 (diff)
downloadrust-4fd1db1aa56fba038fd11f70aa6d5c56e0059930.tar.gz
rust-4fd1db1aa56fba038fd11f70aa6d5c56e0059930.zip
Remove `DiagnosticBuilder::buffer`.
All its uses have been removed.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/diagnostic_builder.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs
index 932b8793807..bd7c58d904e 100644
--- a/compiler/rustc_errors/src/diagnostic_builder.rs
+++ b/compiler/rustc_errors/src/diagnostic_builder.rs
@@ -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