about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-23 09:42:14 +0100
committerGitHub <noreply@github.com>2024-02-23 09:42:14 +0100
commit6ee43bc7de38f9a0ee6cf6faaa487b6d633c37ed (patch)
tree225414023140e4bb95e3f9616bc49942add727e2 /compiler/rustc_pattern_analysis/src/constructor.rs
parent3f693a132031fee3075e3c0c78332666d12acca7 (diff)
parent41da3d6f2fa3ef3eb49c576d82c6879d4b336ef8 (diff)
downloadrust-6ee43bc7de38f9a0ee6cf6faaa487b6d633c37ed.tar.gz
rust-6ee43bc7de38f9a0ee6cf6faaa487b6d633c37ed.zip
Rollup merge of #121487 - nnethercote:fix-121450, r=oli-obk
Explicitly call `emit_stashed_diagnostics`.

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.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
0 files changed, 0 insertions, 0 deletions