diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-01 17:10:39 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-07 09:50:50 +1100 |
| commit | 25d1ef199353b395e60fb75937a8b4837cd3a9c4 (patch) | |
| tree | 875c4e0d080beb3fe50da8f2a5a9aa44d18ea373 /compiler/rustc_errors/src/lib.rs | |
| parent | 2d2755ff97d4c1909dfcd3e2c1fce806a6550919 (diff) | |
| download | rust-25d1ef199353b395e60fb75937a8b4837cd3a9c4.tar.gz rust-25d1ef199353b395e60fb75937a8b4837cd3a9c4.zip | |
Remove `InferCtxt::err_count_on_creation`.
It's no longer used meaningfully. This also means `DiagCtxtHandle::err_count_excluding_lint_errs` can be removed.
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -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 { |
