1
Fork 0

Remove Handler::cancel

This commit is contained in:
Mark Rousskov 2019-09-07 10:38:02 -04:00
parent 2a3930d43c
commit 998df0d70b
7 changed files with 7 additions and 17 deletions

View file

@ -520,10 +520,6 @@ impl Handler {
DiagnosticBuilder::new(self, Level::Fatal, msg)
}
pub fn cancel(&self, err: &mut DiagnosticBuilder<'_>) {
err.cancel();
}
fn panic_if_treat_err_as_bug(&self) {
if self.treat_err_as_bug() {
let s = match (self.err_count(), self.flags.treat_err_as_bug.unwrap_or(0)) {