about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/parser/stashed-diag.rs
AgeCommit message (Collapse)AuthorLines
2024-02-23Explicitly call `emit_stashed_diagnostics`.Nicholas Nethercote-0/+3
Commit 72b172b in #121206 changed things so that `emit_stashed_diagnostics` is only called from `run_compiler`. But rustfmt doesn't use `run_compiler`, so it needs to call `emit_stashed_diagnostics` itself to avoid an abort in `DiagCtxtInner::drop` when stashed diagnostics occur. Fixes #121450.