diff options
| author | bors <bors@rust-lang.org> | 2024-10-07 03:22:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-07 03:22:04 +0000 |
| commit | 8841a3daddd4013c52e8b6de0407fd9b5902583c (patch) | |
| tree | 59989ba3900b8c92ece429ad8cbb310881d7e115 /compiler/rustc_errors/src | |
| parent | a964a9227787447016894268152bff79ee76a36b (diff) | |
| parent | 3fdcde76d9bcbf31e2409aefede4dd8b2f7c315f (diff) | |
| download | rust-8841a3daddd4013c52e8b6de0407fd9b5902583c.tar.gz rust-8841a3daddd4013c52e8b6de0407fd9b5902583c.zip | |
Auto merge of #131226 - nnethercote:rustc_infer-cleanups, r=lcnr
`rustc_infer` cleanups Various small improvements I found while reading over this code. r? `@lcnr`
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 39acacfbe59..10ec521908e 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -925,18 +925,6 @@ impl<'a> DiagCtxtHandle<'a> { self.inner.borrow_mut().emit_stashed_diagnostics() } - /// This excludes lint errors, and delayed bugs. - #[inline] - pub fn err_count_excluding_lint_errs(&self) -> usize { - let inner = self.inner.borrow(); - inner.err_guars.len() - + inner - .stashed_diagnostics - .values() - .filter(|(diag, guar)| guar.is_some() && diag.is_lint.is_none()) - .count() - } - /// This excludes delayed bugs. #[inline] pub fn err_count(&self) -> usize { |
