diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-23 13:20:33 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-23 16:09:51 +1100 |
| commit | ce71137b96e32ad7d198d3a073aff722917c4fd0 (patch) | |
| tree | 538bf9c32a73eebf2c5c0c048c40918308e4e5dc /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 163c3ebf52f2b24f0e8d491375ee3d43af71e6d2 (diff) | |
| download | rust-ce71137b96e32ad7d198d3a073aff722917c4fd0.tar.gz rust-ce71137b96e32ad7d198d3a073aff722917c4fd0.zip | |
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.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
