diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-08 09:43:58 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-09 09:47:36 +1100 |
| commit | a2b765fc37e2de38502912aea051d3fdde42357c (patch) | |
| tree | 9c44e1d5e872eaa7da0bbc57e18dc1529496a5e6 /compiler/rustc_errors/src/diagnostic_builder.rs | |
| parent | ca663b06c5492ac2dde5e53cd11579fa8e4d68bd (diff) | |
| download | rust-a2b765fc37e2de38502912aea051d3fdde42357c.tar.gz rust-a2b765fc37e2de38502912aea051d3fdde42357c.zip | |
Remove `-Zdont-buffer-diagnostics`.
It was added in #54232. It seems like it was aimed at NLL development, which is well in the past. Also, it looks like `-Ztreat-err-as-bug` can be used to achieve the same effect. So it doesn't seem necessary.
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_builder.rs')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_builder.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs index e72791d89a2..3789cdaf354 100644 --- a/compiler/rustc_errors/src/diagnostic_builder.rs +++ b/compiler/rustc_errors/src/diagnostic_builder.rs @@ -266,8 +266,7 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> { /// Converts the builder to a `Diagnostic` for later emission, /// unless dcx has disabled such buffering. pub fn into_diagnostic(mut self) -> Option<(Diagnostic, &'a DiagCtxt)> { - let flags = self.dcx.inner.lock().flags; - if flags.dont_buffer_diagnostics || flags.treat_err_as_bug.is_some() { + if self.dcx.inner.lock().flags.treat_err_as_bug.is_some() { self.emit(); return None; } |
