| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | -42/+12 | |
| 2019-07-10 | Rename is_bol -> is_beginning_of_line | Mark Rousskov | -9/+4 | |
| 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 | -1/+1 | |
| It was always set to the string's length | ||||
| 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 | Move pp::Printer out field to owned String | Mark Rousskov | -19/+13 | |
| 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 | -1102/+1038 | |
| 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 | -12/+10 | |
| 2019-06-29 | Delete now-unused methods | Mark Rousskov | -49/+0 | |
| 2019-06-29 | Privatize a bunch of methods | Mark Rousskov | -72/+72 | |
| 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 | ||||
| 2019-06-08 | syntax: Remove `Deref` impl from `Token` | Vadim Petrochenkov | -4/+8 | |
| 2019-06-07 | syntax: Treat error literals in more principled way | Vadim Petrochenkov | -4/+4 | |
| 2019-06-06 | syntax: Use `Token` in `TokenTree::Token` | Vadim Petrochenkov | -4/+4 | |
| 2019-06-06 | syntax: Rename `Token` into `TokenKind` | Vadim Petrochenkov | -2/+2 | |
| 2019-06-05 | Implemented for function bounds, type bounds, and named existential types. | Alexander Regueiro | -4/+11 | |
| 2019-06-05 | Aggregation of drive-by cosmetic changes. | Alexander Regueiro | -4/+4 | |
| 2019-06-03 | syntax: revert `ast::AsyncArgument` and associated changes. | Eduard-Mihai Burtescu | -11/+12 | |
| Here follows the main reverts applied in order to make this commit: Revert "Rollup merge of #60676 - davidtwco:issue-60674, r=cramertj" This reverts commit 45b09453dbf120cc23d889435aac3ed7d2ec8eb7, reversing changes made to f6df1f6c30b469cb9e65c5453a0efa03cbb6005e. Revert "Rollup merge of #60437 - davidtwco:issue-60236, r=nikomatsakis" This reverts commit 16939a50ea440e72cb6ecefdaabb988addb1ec0e, reversing changes made to 12bf98155249783583a91863c5dccf9e346f1226. Revert "Rollup merge of #59823 - davidtwco:issue-54716, r=cramertj" This reverts commit 62d1574876f5531bce1b267e62dff520d7adcbbb, reversing changes made to 4eff8526a789e0dfa8b97f7dec91b7b5c18e8544. | ||||
| 2019-05-24 | Remove `ObsoleteInPlace` | varkor | -7/+0 | |
| 2019-05-23 | syntax: Some code cleanup | Vadim Petrochenkov | -1/+2 | |
| 2019-05-23 | syntax: Turn `token::Lit` into a struct | Vadim Petrochenkov | -18/+18 | |
| 2019-05-22 | Simplify use of keyword symbols | Vadim Petrochenkov | -7/+7 | |
| 2019-05-21 | Move `edition` outside the hygiene lock and avoid accessing it | John Kåre Alsaker | -3/+3 | |
