From a7aa1850b2de87e31ffa07df6f4d47e0a5f7b01e Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Sat, 1 Oct 2022 18:39:02 -0600 Subject: migrate dead.rs to translateable diagnostics --- compiler/rustc_errors/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'compiler/rustc_errors/src') 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 { - 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 { if self.inner.borrow().has_errors_or_lint_errors() { -- cgit 1.4.1-3-g733a5