| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-04-28 | Introduce `BoxMarker` to pretty-printing. | Nicholas Nethercote | -8/+10 | |
| 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. | ||||
| 2024-09-22 | Reformat using the new identifier sorting from rustfmt | Michael Goulet | -1/+1 | |
| 2024-08-16 | Add `warn(unreachable_pub)` to `rustc_ast_pretty`. | Nicholas Nethercote | -12/+12 | |
| 2024-07-29 | Reformat `use` declarations. | Nicholas Nethercote | -1/+2 | |
| The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options. | ||||
| 2023-11-22 | Remove or downgrade unnecessary `pub` visibility markers. | Nicholas Nethercote | -1/+1 | |
| 2022-02-07 | Pretty print ItemKind::Use in rustfmt style | David Tolnay | -0/+4 | |
| 2022-02-03 | Change pp indent to signed to allow negative indents | David Tolnay | -7/+4 | |
| 2022-02-03 | Add trailing comma support | David Tolnay | -3/+19 | |
| 2022-01-31 | Factor convenience functions out of main printer implementation | David Tolnay | -0/+77 | |
| 2022-01-19 | Eliminate a token clone from advance_left | David Tolnay | -5/+6 | |
| 2022-01-18 | Eliminate left and right cursors in favor of ring buffer | David Tolnay | -1/+19 | |
| 2022-01-18 | Eliminate eof token state | David Tolnay | -7/+8 | |
| 2022-01-18 | Simplify the buffer push done by scan_break | David Tolnay | -4/+0 | |
| 2022-01-18 | Simplify ring buffer pushes | David Tolnay | -0/+8 | |
| 2022-01-17 | Abstract the pretty printer's ringbuffer to be infinitely sized | David Tolnay | -0/+53 | |
