<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_ast_pretty/src/pp, branch auto</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=auto</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=auto'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-04-28T05:51:25+00:00</updated>
<entry>
<title>Introduce `BoxMarker` to pretty-printing.</title>
<updated>2025-04-28T05:51:25+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-04-24T22:29:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aff1be2637cecd0ef4224570b9ddf23f62f88b2b'/>
<id>urn:sha1:aff1be2637cecd0ef4224570b9ddf23f62f88b2b</id>
<content type='text'>
The pretty-printers open and close "boxes" of text a lot. The open and
close operations must be matched. The matching is currently all implicit
and very easy to get wrong. (#140280 and #140246 are two recent
pretty-printing fixes that both involved unclosed boxes.)

This commit introduces `BoxMarker`, a marker type that represents an
open box. It makes box opening/closing explicit, which makes it much
easier to understand and harder to get wrong.

The commit also removes many comments are on `end` calls saying things
like "end outer head-block", "Close the outer-box". These demonstrate
how confusing the implicit approach was, but aren't necessary any more.
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `warn(unreachable_pub)` to `rustc_ast_pretty`.</title>
<updated>2024-08-15T22:46:46+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-06T11:27:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f2fc87db44413bc4706980481c057e30cac2efd9'/>
<id>urn:sha1:f2fc87db44413bc4706980481c057e30cac2efd9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat `use` declarations.</title>
<updated>2024-07-28T22:26:52+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-07-28T22:13:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=84ac80f1921afc243d71fd0caaa4f2838c294102'/>
<id>urn:sha1:84ac80f1921afc243d71fd0caaa4f2838c294102</id>
<content type='text'>
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
</content>
</entry>
<entry>
<title>Remove or downgrade unnecessary `pub` visibility markers.</title>
<updated>2023-11-21T21:13:21+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2023-11-13T22:22:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d9443f71c7dc55b4e57e8ec02e762704482f1dce'/>
<id>urn:sha1:d9443f71c7dc55b4e57e8ec02e762704482f1dce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Pretty print ItemKind::Use in rustfmt style</title>
<updated>2022-02-08T05:51:05+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2022-02-08T05:03:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d1b9e4a6f25854e3b6de8fcea73b8988b25654db'/>
<id>urn:sha1:d1b9e4a6f25854e3b6de8fcea73b8988b25654db</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change pp indent to signed to allow negative indents</title>
<updated>2022-02-03T18:59:09+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2022-01-21T22:15:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bdf08fbed2fba60e41dadb3be9714b4c0441f72'/>
<id>urn:sha1:8bdf08fbed2fba60e41dadb3be9714b4c0441f72</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add trailing comma support</title>
<updated>2022-02-03T18:56:58+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2022-01-21T21:13:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0b7e1baa58dea7cfb1170a361e12c3dec8e76840'/>
<id>urn:sha1:0b7e1baa58dea7cfb1170a361e12c3dec8e76840</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Factor convenience functions out of main printer implementation</title>
<updated>2022-01-31T19:23:47+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2022-01-21T21:08:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2d7ffbbc40cb8ddd85ed29ad88d217e10a17f8ac'/>
<id>urn:sha1:2d7ffbbc40cb8ddd85ed29ad88d217e10a17f8ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Eliminate a token clone from advance_left</title>
<updated>2022-01-20T03:02:25+00:00</updated>
<author>
<name>David Tolnay</name>
<email>dtolnay@gmail.com</email>
</author>
<published>2022-01-20T02:35:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d981c5b354c40a6097c83a72173ae8a5569db2e1'/>
<id>urn:sha1:d981c5b354c40a6097c83a72173ae8a5569db2e1</id>
<content type='text'>
</content>
</entry>
</feed>
