about summary refs log tree commit diff
path: root/tests/pretty/if-else.pp
AgeCommit message (Collapse)AuthorLines
2025-07-28expand: Micro-optimize prelude injectionVadim Petrochenkov-2/+2
Use `splice` to avoid shifting the other items twice. Put `extern crate std;` first so it's already resolved when we resolve `::std::prelude::rust_20XX`.
2025-04-25Improve pretty printing of if/else.Nicholas Nethercote-30/+30
By removing some of the over-indenting. AST pretty printing now looks correct. HIR pretty printing is better, but still over-indents some.
2025-04-25Fix some pretty printing indents.Nicholas Nethercote-18/+18
Indents for `cbox` and `ibox` are 0 or `INDENT_UNIT` (4) except for a couple of places which are `INDENT_UNIT - 1` for no clear reason. This commit changes the three space indents to four spaces.
2025-04-25Add pretty printing tests for if/else.Nicholas Nethercote-0/+52
The AST pretty printing is a bit wonky. The HIR pretty printing is extremely wonky.