<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/tools/rustfmt/tests/parser, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-02-25T23:45:45+00:00</updated>
<entry>
<title>Move `emit_stashed_diagnostic` call in rustfmt.</title>
<updated>2024-02-25T23:45:45+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-02-25T22:24:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bf7d1b54e8a3195a0f52516d48659d9f1270436d'/>
<id>urn:sha1:bf7d1b54e8a3195a0f52516d48659d9f1270436d</id>
<content type='text'>
This call was added to `parse_crate_mod` in #121487, to fix a case where
a stashed diagnostic wasn't emitted. But there is another path where a
stashed diagnostic might fail to be emitted if there's a parse error, if
the `build` call in `parse_crate_inner` fails before `parse_crate_mod`
is reached.

So this commit moves the `emit_stashed_diagnostic` call outwards, from
`parse_crate_mod` to `format_project`, just after the
`Parser::parse_crate` call. This should be far out enough to catch any
parsing errors.

Fixes #121517.
</content>
</entry>
<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>
<entry>
<title>Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'</title>
<updated>2021-05-15T02:53:36+00:00</updated>
<author>
<name>Caleb Cartwright</name>
<email>caleb.cartwright@outlook.com</email>
</author>
<published>2021-05-15T02:53:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b2d45c0d4b2d44789000ebec6d702cc27db19782'/>
<id>urn:sha1:b2d45c0d4b2d44789000ebec6d702cc27db19782</id>
<content type='text'>
git-subtree-dir: src/tools/rustfmt
git-subtree-mainline: e659b6de9170c055b6f2d16e2679b22d67297b13
git-subtree-split: 7872306edf2e11a69aaffb9434088fd66b46a863
</content>
</entry>
</feed>
