| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-06-23 | let_chains: Fix bugs in pretty printing. | Mazdak Farrokhzad | -2/+2 | |
| 2019-06-23 | let_chains: Refactor parse_{if,while}_expr a bit. | Mazdak Farrokhzad | -9/+12 | |
| 2019-06-23 | let_chains: Move feature gating to pre-expansion. | Mazdak Farrokhzad | -3/+17 | |
| 2019-06-23 | let_chains: Inline visit_expr_with_let_maybe_allowed. | Mazdak Farrokhzad | -0/+1 | |
| 2019-06-23 | let_chains: readd kw::let to ident_can_begin_expr. | Mazdak Farrokhzad | -2/+1 | |
| 2019-06-23 | let_chains: Fix outdated doc-comment re. 'parse_if_expr'. | Mazdak Farrokhzad | -1/+1 | |
| 2019-06-23 | let_chains: Comment out Let in ident_can_begin_expr. | Mazdak Farrokhzad | -1/+2 | |
| 2019-06-23 | let_chains: Add support for parsing let expressions. | Mazdak Farrokhzad | -49/+19 | |
| 2019-06-23 | let_chains: Remove ast::ExprKind::{IfLet, WhileLet} from visitors and ↵ | Mazdak Farrokhzad | -2/+0 | |
| introduce ::Let. | ||||
| 2019-06-21 | Implement arbitrary_enum_discriminant | John Wrenn | -36/+43 | |
| 2019-06-20 | Add unit tests for unescaping raw (byte) strings | Igor Matuszewski | -0/+30 | |
| 2019-06-18 | Remove the HirId/NodeId from where clauses | Matthew Jasper | -2/+0 | |
| Also give them a span in the HIR | ||||
| 2019-06-12 | Auto merge of #61612 - nnethercote:improve-parse_bottom_expr, r=petrochenkov | bors | -10/+22 | |
| Special-case literals in `parse_bottom_expr`. This makes parsing faster, particularly for code with large constants, for two reasons: - it skips all the keyword comparisons for literals; - it skips the allocation done by the `mk_expr` call in `parse_literal_maybe_minus`. r? @petrochenkov | ||||
| 2019-06-12 | Auto merge of #60669 - c410-f3r:attrs-fn, r=petrochenkov | bors | -33/+69 | |
| Allow attributes in formal function parameters Implements https://github.com/rust-lang/rust/issues/60406. This is my first contribution to the compiler and since this is a large and complex project, I am not fully aware of the consequences of the changes I have made. **TODO** - [x] Forbid some built-in attributes. - [x] Expand cfg/cfg_attr | ||||
| 2019-06-12 | Rollup merge of #61654 - Electron-libre:use_slice_patterns_in_rustc, ↵ | Mazdak Farrokhzad | -37/+27 | |
| r=oli-obk,Centril use pattern matching for slices destructuring refs #61542 Use slices pattern where it seems to make sense . | ||||
| 2019-06-10 | Auto merge of #60793 - Xanewok:raw-string-cleanup, r=petrochenkov | bors | -128/+161 | |
| lexer: Disallow bare CR in raw byte strings Handles bare CR ~but doesn't translate `\r\n` to `\n` yet in raw strings yet~ and translates CRLF to LF in raw strings. As a side-note I think it'd be good to change the `unescape_` to return plain iterators to reduce some boilerplate (e.g. `has_error` could benefit from collecting `Result<T>` and aborting early on errors) but will do that separately, unless I missed something here that prevents it. @matklad @petrochenkov thoughts? | ||||
| 2019-06-10 | Don't suggest using \r in raw strings | Igor Matuszewski | -1/+7 | |
| 2019-06-10 | Special-case literals in `parse_bottom_expr`. | Nicholas Nethercote | -10/+22 | |
| This makes parsing faster, particularly for code with large constants, for two reasons: - it skips all the keyword comparisons for literals; - it replaces the unnecessary `parse_literal_maybe_minus` call with `parse_lit`, avoiding an unnecessary allocation via `mk_expr`. | ||||
| 2019-06-09 | Use char byte calculation using existing iterator | Igor Matuszewski | -11/+13 | |
| 2019-06-09 | Actually translate CRLF in raw byte strings and unify unescape impl | Igor Matuszewski | -25/+69 | |
| 2019-06-09 | Add a doc comment for scan_raw_string | Igor Matuszewski | -0/+2 | |
| 2019-06-09 | Allow attributes in formal function parameters | Caio | -33/+69 | |
| 2019-06-09 | Translate CRLF -> LF in raw (byte) strings | Igor Matuszewski | -34/+18 | |
| 2019-06-08 | Prohibit bare CRs in raw byte strings | Igor Matuszewski | -70/+53 | |
| 2019-06-08 | Validate and transcribe raw strings via unescape module | Igor Matuszewski | -46/+59 | |
| 2019-06-08 | syntax: Move some `Token` methods around | Vadim Petrochenkov | -48/+40 | |
| 2019-06-08 | syntax: Remove `Deref` impl from `Token` | Vadim Petrochenkov | -31/+24 | |
| 2019-06-08 | syntax: Move most of the `TokenKind` methods to `Token` | Vadim Petrochenkov | -81/+49 | |
| 2019-06-08 | fix libsyntax test | Cedric | -4/+4 | |
| 2019-06-08 | Remove redundant, commented out code | Igor Matuszewski | -6/+0 | |
| It was commented out as part of https://github.com/rust-lang/rust/commit/8a8e497ae786ffc032c1e68fc23da0edcf6fa5e3. Done probably by accident, since the code in question was moved to a match arm, along with newly introduced logic to detect bare CRs in raw strings. | ||||
| 2019-06-08 | Separate a `scan_raw_string` (similar `raw_byte` variant) | Igor Matuszewski | -77/+82 | |
| 2019-06-08 | Clean up minor bits | Igor Matuszewski | -2/+2 | |
| 2019-06-08 | cast vec to slices | Cedric | -5/+5 | |
| 2019-06-08 | use default binding mode in match clauses | Cedric | -5/+5 | |
| 2019-06-08 | fix bad style for structs | Cedric | -8/+8 | |
| 2019-06-08 | improve style | Cedric | -13/+10 | |
| 2019-06-08 | use pattern matching for slices destructuring | Cedric | -31/+24 | |
| 2019-06-08 | Rollup merge of #61616 - petrochenkov:parsderef, r=oli-obk | Mazdak Farrokhzad | -248/+238 | |
| parser: Remove `Deref` impl from `Parser` Follow up to https://github.com/rust-lang/rust/pull/61541 You have to write `self.token.span` instead of `self.span` in the parser now, which is not nice, but not too bad either, I guess. Not sure. Probably still better than people using both and being confused about the definition point of `span`. r? @oli-obk @estebank | ||||
| 2019-06-07 | syntax: Treat error literals in more principled way | Vadim Petrochenkov | -1/+5 | |
| 2019-06-07 | parser: Remove `look_ahead_span` | Vadim Petrochenkov | -18/+5 | |
| 2019-06-07 | parser: Remove `Deref` impl from `Parser` | Vadim Petrochenkov | -10/+0 | |
| 2019-06-07 | parser: `self.span` -> `self.token.span` | Vadim Petrochenkov | -224/+237 | |
| 2019-06-06 | Address review comments | Vadim Petrochenkov | -4/+8 | |
| 2019-06-06 | Some code cleanup and tidy/test fixes | Vadim Petrochenkov | -41/+54 | |
| 2019-06-06 | syntax: Switch function parameter order in `TokenTree::token` | Vadim Petrochenkov | -20/+20 | |
| 2019-06-06 | syntax: Use `Token` in some more places | Vadim Petrochenkov | -4/+4 | |
| 2019-06-06 | syntax: Remove duplicate span from `token::Ident` | Vadim Petrochenkov | -104/+105 | |
| 2019-06-06 | syntax: Remove duplicate span from `token::Lifetime` | Vadim Petrochenkov | -30/+34 | |
| 2019-06-06 | syntax: Add some helper methods to `Token` | Vadim Petrochenkov | -51/+54 | |
| 2019-06-06 | syntax: Use `Token` in `Parser` | Vadim Petrochenkov | -106/+107 | |
