<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/tools/rustfmt/tests/parser/stashed-diag.rs, branch automation/bors/try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=automation/bors/try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=automation/bors/try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-02-23T05:09:51+00:00</updated>
<entry>
<title>Explicitly call `emit_stashed_diagnostics`.</title>
<updated>2024-02-23T05:09:51+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-02-23T02:20:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41da3d6f2fa3ef3eb49c576d82c6879d4b336ef8'/>
<id>urn:sha1:41da3d6f2fa3ef3eb49c576d82c6879d4b336ef8</id>
<content type='text'>
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.
</content>
</entry>
</feed>
