Remove an out-of-date comment.

This commit is contained in:
Nicholas Nethercote 2024-02-16 10:35:53 +11:00
parent f8131a48a4
commit 1e16927ef3

View File

@ -1271,7 +1271,6 @@ impl DiagCtxtInner {
fn emit_stashed_diagnostics(&mut self) {
let has_errors = !self.err_guars.is_empty();
for (_, diag) in std::mem::take(&mut self.stashed_diagnostics).into_iter() {
// Decrement the count tracking the stash; emitting will increment it.
if diag.is_error() {
if diag.is_lint.is_none() {
self.stashed_err_count -= 1;