migrate dead.rs to translateable diagnostics

This commit is contained in:
Nathan Stocks 2022-10-01 18:39:02 -06:00
parent f0afb88302
commit a7aa1850b2
4 changed files with 20 additions and 17 deletions

View file

@ -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() {