| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-07-15 | pprust: Remove the box from `print_tts` | Vadim Petrochenkov | -2/+4 | |
| Wrap the whole attribute into a box instead | ||||
| 2019-07-15 | pprust: Use `print_mac_common` for delimited token groups | Vadim Petrochenkov | -27/+33 | |
| 2019-07-15 | pprust: Use `print_mac_common` for attributes | Vadim Petrochenkov | -4/+18 | |
| 2019-07-15 | pprust: Use `print_mac_common` for `macro_rules` definitions | Vadim Petrochenkov | -26/+16 | |
| 2019-07-15 | pprust: Move some methods to the `PrintState` trait | Vadim Petrochenkov | -135/+132 | |
| So that path and macro argument printing code can be shared | ||||
| 2019-07-12 | Use snippet instead of pprinting statement | Esteban Küber | -2/+1 | |
| 2019-07-11 | Address review comments | Vadim Petrochenkov | -9/+10 | |
| 2019-07-11 | pretty-print: Merge `print_tts` and `print_tts_ext` | Vadim Petrochenkov | -10/+6 | |
| 2019-07-11 | pretty-print: Do not lose the `$crate` printing flag in `print_tt` | Vadim Petrochenkov | -1/+1 | |
| 2019-07-10 | File is now short enough for tidy | Mark Rousskov | -2/+0 | |
| 2019-07-10 | Remove writer function from PrintState | Mark Rousskov | -37/+32 | |
| 2019-07-10 | Use constant instead of magic number | Mark Rousskov | -1/+1 | |
| 2019-07-10 | Remove needless indent arguments | Mark Rousskov | -11/+8 | |
| We're always indenting by INDENT_UNIT anyway | ||||
| 2019-07-10 | Move pp::Printer helpers to direct impl | Mark Rousskov | -45/+49 | |
| 2019-07-10 | Rename is_bol -> is_beginning_of_line | Mark Rousskov | -10/+9 | |
| Also moves it to pp::Printer from PrintState. | ||||
| 2019-07-10 | Remove needless indirection in bclose | Mark Rousskov | -6/+2 | |
| 2019-07-10 | Drop length from Token::String | Mark Rousskov | -12/+15 | |
| It was always set to the string's length | ||||
| 2019-07-10 | Rename pretty_print_* to scan_* to follow naming in the paper | Mark Rousskov | -11/+11 | |
| This is also easier to understand because the scan and print "tasks" are separate, but previously were both called "print" or "pretty print." | ||||
| 2019-07-10 | Remove is_begin/is_end functions from PrintState | Mark Rousskov | -16/+4 | |
| These are somewhat ambiguous (beginning/end of what?) so it's better to inline their one use into the code. | ||||
| 2019-07-10 | Simplify print_end | Mark Rousskov | -3/+1 | |
| Presumably the code was from an older age of Rust and can now be written much simpler. | ||||
| 2019-07-10 | Simplify check_stack implementation | Mark Rousskov | -7/+7 | |
| 2019-07-10 | Move BufEntry assignment into scan_push | Mark Rousskov | -12/+7 | |
| 2019-07-10 | Remove useless call to indent | Mark Rousskov | -1/+0 | |
| 2019-07-10 | Fully privatize (vs. crate visibility) functions | Mark Rousskov | -18/+18 | |
| 2019-07-10 | Move pp::Printer out field to owned String | Mark Rousskov | -26/+21 | |
| This enforces that eof() must be called to get the String out, and generally is better from an API perspective. No users of pretty printing pre-allocate the buffer. | ||||
| 2019-07-10 | Inline State::new_from_input in pprust | Mark Rousskov | -18/+6 | |
| This function took too many arguments and are simple on the inside; inlining them makes complexity go down. hir::print's copy is unfortunately used from librustc_driver so inlining it is not as straightforward. | ||||
| 2019-07-10 | print_crate returns String instead of taking an out pointer | Mark Rousskov | -4/+5 | |
| 2019-07-10 | Replace src: &mut dyn Read with String | Mark Rousskov | -3/+2 | |
| 2019-07-10 | Combine comment-handling logic into struct | Mark Rousskov | -37/+57 | |
| This also permits sharing the underlying code between pprust and hir::print. | ||||
| 2019-07-10 | Inline State::new | Mark Rousskov | -9/+1 | |
| There was only one callsite for each and this removes the unwrap_or_default's on the comments argument | ||||
| 2019-07-10 | Stop Option-wrapping comments | Mark Rousskov | -14/+10 | |
| We always check against the length before indexing anyway. | ||||
| 2019-07-10 | Remove unused boxes vector | Mark Rousskov | -12/+0 | |
| 2019-07-10 | Privatize and remove unused functions | Mark Rousskov | -19/+9 | |
| 2019-07-10 | Move lifetime_to_string to Display impl | Mark Rousskov | -4/+0 | |
| 2019-07-10 | Remove unused arm_to_string | Mark Rousskov | -4/+0 | |
| 2019-07-10 | Remove duplicate attr_to_string | Mark Rousskov | -4/+0 | |
| attribute_to_string exists. | ||||
| 2019-07-10 | Move literal_to_string to fmt::Display | Mark Rousskov | -5/+1 | |
| 2019-07-09 | Pretty-print `$crate` as `crate`/`::my_crate` in tokens | Vadim Petrochenkov | -47/+62 | |
| ...but only if those tokens are printed from inside of AST pretty-printing. | ||||
| 2019-06-29 | Inline rust_printer | Mark Rousskov | -14/+9 | |
| 2019-06-29 | Remove unused import | Mark Rousskov | -1/+0 | |
| 2019-06-29 | Remove io::Result from syntax::print | Mark Rousskov | -1153/+1072 | |
| Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure | ||||
| 2019-06-29 | Replace pretty-printer Box<dyn Write> with &mut String | Mark Rousskov | -31/+22 | |
| 2019-06-29 | Delete now-unused methods | Mark Rousskov | -53/+0 | |
| 2019-06-29 | Privatize a bunch of methods | Mark Rousskov | -96/+96 | |
| 2019-06-26 | Fix clippy::print_with_newline | Igor Matuszewski | -1/+1 | |
| 2019-06-24 | Auto merge of #62075 - Centril:guardless-match-arms, r=petrochenkov | bors | -8/+4 | |
| Remove `ast::Guard` With the introduction of `ast::ExprKind::Let` in https://github.com/rust-lang/rust/pull/60861, the `ast::Guard` structure is now redundant in terms of representing [`if let` guards](https://github.com/rust-lang/rust/issues/51114) in AST since it can be represented by `ExprKind::Let` syntactically. Therefore, we remove `ast::Guard` here. However, we keep `hir::Guard` because the semantic representation is a different matter and this story is more unclear right now (might involve `goto 'arm` in HIR or something...). r? @petrochenkov | ||||
| 2019-06-23 | Remove redundant syntax::ast::Guard. | Mazdak Farrokhzad | -8/+4 | |
| 2019-06-23 | let_chains: Fix bugs in pretty printing. | Mazdak Farrokhzad | -12/+28 | |
| 2019-06-23 | let_chains: Handle it in AST pretty printing. | Mazdak Farrokhzad | -40/+14 | |
| 2019-06-18 | Remove the HirId/NodeId from where clauses | Matthew Jasper | -1/+0 | |
| Also give them a span in the HIR | ||||
