about summary refs log tree commit diff
path: root/compiler/rustc_ast_pretty/src/pp.rs
AgeCommit message (Expand)AuthorLines
2023-11-22Remove or downgrade unnecessary `pub` visibility markers.Nicholas Nethercote-7/+7
2023-11-22Remove unnecessary derives.Nicholas Nethercote-2/+1
2023-04-28remove unused `mut`sLukas Markeffsky-1/+1
2022-05-02fix most compiler/ doctestsElliot Roberts-5/+5
2022-02-03Support offsetting the most recent breakDavid Tolnay-0/+6
2022-02-03Change pp indent to signed to allow negative indentsDavid Tolnay-1/+3
2022-02-03Add trailing comma supportDavid Tolnay-4/+8
2022-02-03Rollup merge of #93515 - dtolnay:convenience, r=davidtwcoYuki Okushi-75/+1
2022-01-31Factor convenience functions out of main printer implementationDavid Tolnay-75/+1
2022-01-31Allow any line to have at least 60 charsDavid Tolnay-1/+4
2022-01-31Extract constant MARGIN out of Printer structDavid Tolnay-7/+6
2022-01-30Restore a visual alignment mode for block commentsDavid Tolnay-3/+29
2022-01-30Compute indent never relative to current columnDavid Tolnay-18/+21
2022-01-30Rollup merge of #92908 - dtolnay:rustdoc, r=GuillaumeGomezEric Huss-1/+1
2022-01-19Deduplicate branches of print_break implementationDavid Tolnay-19/+14
2022-01-19Inline print_newline functionDavid Tolnay-7/+4
2022-01-19Inline indent functionDavid Tolnay-8/+3
2022-01-19Eliminate offset number from Fits framesDavid Tolnay-28/+19
2022-01-19Touch up print_stringDavid Tolnay-5/+4
2022-01-19Replace all single character variable namesDavid Tolnay-47/+49
2022-01-19Combine advance_left matchesDavid Tolnay-8/+8
2022-01-19Inline print into advance_leftDavid Tolnay-11/+8
2022-01-19Simplify advance_leftDavid Tolnay-8/+4
2022-01-19Simplify left_total trackingDavid Tolnay-16/+6
2022-01-19Eliminate a token clone from advance_leftDavid Tolnay-2/+1
2022-01-19Grow scan_stack in the conventional directionDavid Tolnay-9/+9
2022-01-19Delete unused Display for pretty printer TokenDavid Tolnay-12/+0
2022-01-18Eliminate left and right cursors in favor of ring bufferDavid Tolnay-29/+14
2022-01-18Eliminate eof token stateDavid Tolnay-27/+24
2022-01-18Simplify the buffer push done by scan_breakDavid Tolnay-4/+3
2022-01-18Eliminate a check_stack call on an empty scan stackDavid Tolnay-1/+1
2022-01-18Index a single time in check_stackDavid Tolnay-4/+5
2022-01-18Implement check_stack nonrecursivelyDavid Tolnay-9/+10
2022-01-18Implement check_stream nonrecursivelyDavid Tolnay-3/+3
2022-01-18Replace `if` + `unwrap` with `if let` in check_stackDavid Tolnay-2/+1
2022-01-18Ensure Printer buf is always indexed using self.left or self.rightDavid Tolnay-3/+3
2022-01-18Inline Printer's scan_pop_bottom methodDavid Tolnay-5/+1
2022-01-18Inline Printer's scan_top methodDavid Tolnay-5/+1
2022-01-18Inline Printer's scan_pop methodDavid Tolnay-7/+3
2022-01-18Simplify ring buffer pushesDavid Tolnay-7/+4
2022-01-18Inline Printer's scan_push methodDavid Tolnay-8/+6
2022-01-18Inline Printer's advance_right methodDavid Tolnay-9/+8
2022-01-18Delete pretty printer tracingDavid Tolnay-52/+0
2022-01-18Render more readable macro matchers in rustdocDavid Tolnay-1/+1
2022-01-17Abstract the pretty printer's ringbuffer to be infinitely sizedDavid Tolnay-22/+14
2022-01-14Rename Printer constructor from mk_printer() to Printer::new()David Tolnay-23/+23
2020-12-28Add missing commas to `rustc_ast_pretty::pp` docsCamelid-2/+2
2020-10-20Drop unneeded `mut`LingMan-2/+2
2020-10-14Rollup merge of #77886 - LingMan:ast_pretty_bool_matches, r=petrochenkovYuki Okushi-8/+2
2020-10-13Replace trivial bool matches with the `matches!` macroLingMan-8/+2