about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic_builder.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-25 10:10:04 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-07-25 13:33:09 +0000
commitcf9f53c83753e64d4e56fd188fa93ee8b49bf32b (patch)
tree7bcc01ecd72edaf4173452a03877b217d5e88197 /compiler/rustc_errors/src/diagnostic_builder.rs
parentb7f8eba9fd6c2000a3d7a7a7cf86607d2730dbf8 (diff)
downloadrust-cf9f53c83753e64d4e56fd188fa93ee8b49bf32b.tar.gz
rust-cf9f53c83753e64d4e56fd188fa93ee8b49bf32b.zip
Remove a redundant field
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_builder.rs')
-rw-r--r--compiler/rustc_errors/src/diagnostic_builder.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs
index 08ff2cfba5c..5e23ae655fe 100644
--- a/compiler/rustc_errors/src/diagnostic_builder.rs
+++ b/compiler/rustc_errors/src/diagnostic_builder.rs
@@ -536,7 +536,9 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
             }
         };
 
-        if handler.flags.dont_buffer_diagnostics || handler.flags.treat_err_as_bug.is_some() {
+        if handler.inner.lock().flags.dont_buffer_diagnostics
+            || handler.inner.lock().flags.treat_err_as_bug.is_some()
+        {
             self.emit();
             return None;
         }