diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 10:10:04 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-07-25 13:33:09 +0000 |
| commit | cf9f53c83753e64d4e56fd188fa93ee8b49bf32b (patch) | |
| tree | 7bcc01ecd72edaf4173452a03877b217d5e88197 /compiler/rustc_errors/src/lib.rs | |
| parent | b7f8eba9fd6c2000a3d7a7a7cf86607d2730dbf8 (diff) | |
| download | rust-cf9f53c83753e64d4e56fd188fa93ee8b49bf32b.tar.gz rust-cf9f53c83753e64d4e56fd188fa93ee8b49bf32b.zip | |
Remove a redundant field
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index bf19e0587a2..c33e870317e 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -391,7 +391,6 @@ use std::backtrace::{Backtrace, BacktraceStatus}; /// Certain errors (fatal, bug, unimpl) may cause immediate exit, /// others log errors for later reporting. pub struct Handler { - flags: HandlerFlags, inner: Lock<HandlerInner>, } @@ -589,7 +588,6 @@ impl Handler { ice_file: Option<PathBuf>, ) -> Self { Self { - flags, inner: Lock::new(HandlerInner { flags, lint_err_count: 0, @@ -637,7 +635,7 @@ impl Handler { // This is here to not allow mutation of flags; // as of this writing it's only used in tests in librustc_middle. pub fn can_emit_warnings(&self) -> bool { - self.flags.can_emit_warnings + self.inner.lock().flags.can_emit_warnings } /// Resets the diagnostic error count as well as the cached emitted diagnostics. |
