about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-28 11:00:27 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 11:08:29 +1100
commit82961c0abcd7b9ea73fb87fd049e2e853abd5787 (patch)
treebc3fa9ac95899fbcbdb78f3652a384534459c3de /compiler/rustc_errors/src/json.rs
parent9aff357e5398320962137a8885b924231904ef08 (diff)
downloadrust-82961c0abcd7b9ea73fb87fd049e2e853abd5787.tar.gz
rust-82961c0abcd7b9ea73fb87fd049e2e853abd5787.zip
Reinstate `emit_stashed_diagnostics` in `DiagCtxtInner::drop`.
I removed it in #121206 because I thought thought it wasn't necessary.
But then I had to add an `emit_stashed_diagnostics` call elsewhere in
rustfmt to avoid the assertion failure (which took two attempts to get
right, #121487 and #121615), and now there's an assertion failure in
clippy as well (https://github.com/rust-lang/rust-clippy/issues/12364).

So this commit just reinstates the call in `DiagCtxtInner::drop`. It
also reverts the rustfmt changes from #121487 and #121615, though it
keeps the tests added for those PRs.
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions