You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The remove error counts in the ones with delayed bugs: because we no
longer flush delayed bugs in `codegen_and_link`
(do that in a precursor?)
---
Require explicit calls to `emit_stashed_diagnostic`.
`DiagCtxtInner::drop` will emit any remaining stashed diagnostics. But
we also have explicit calls to `emit_stashed_diagnostics` in several
places. All this makes it difficult to understand where the
responsibility for emitting stashed diagnostics lies.
As it happens, the call in `DiagCtxtInner::drop` isn't necessary. So
this commit replaces that call with an assertion that there are no
stashed diagnostics left. This makes things clearer. In particular,
numerous `DiagCtxt`s are created during compilation, but
stashing/stealing only occurs in the main one, which is the one used for
`print_error_count`.
0 commit comments