about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorNathan Stocks <cleancut@github.com>2022-10-01 18:39:02 -0600
committerNathan Stocks <cleancut@github.com>2022-10-07 13:19:27 -0600
commita7aa1850b2de87e31ffa07df6f4d47e0a5f7b01e (patch)
tree4130b27307a6e84722f2b72be8fde9a12c536c30 /compiler/rustc_errors
parentf0afb8830258c2cfc36306e21bb436d55e74c4fa (diff)
downloadrust-a7aa1850b2de87e31ffa07df6f4d47e0a5f7b01e.tar.gz
rust-a7aa1850b2de87e31ffa07df6f4d47e0a5f7b01e.zip
migrate dead.rs to translateable diagnostics
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index a7fe280bc20..277d7166228 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -988,11 +988,7 @@ impl Handler {
     }
 
     pub fn has_errors(&self) -> Option<ErrorGuaranteed> {
-        if self.inner.borrow().has_errors() {
-            Some(ErrorGuaranteed(()))
-        } else {
-            None
-        }
+        if self.inner.borrow().has_errors() { Some(ErrorGuaranteed(())) } else { None }
     }
     pub fn has_errors_or_lint_errors(&self) -> Option<ErrorGuaranteed> {
         if self.inner.borrow().has_errors_or_lint_errors() {