| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-07-04 | cleanup lexer constructors | Aleksey Kladov | -15/+7 | |
| 2019-07-04 | remove peek_span_src_raw from StringReader | Aleksey Kladov | -68/+45 | |
| 2019-07-04 | remove peek_token from StringReader | Aleksey Kladov | -18/+8 | |
| 2019-07-04 | remove StringReader::peek | Aleksey Kladov | -4/+0 | |
| The reader itself doesn't need ability to peek tokens, so it's better if clients implement this functionality. This hopefully becomes especially easy once we use iterator interface for lexer, but this is not too easy at the moment, because of buffered errors. | ||||
| 2019-07-04 | Rollup merge of #62297 - matklad:peek-delimited, r=petrochenkov | Mazdak Farrokhzad | -67/+72 | |
| refactor check_for_substitution No behavior change, just flatter and simpler code. r? @petrochenkov | ||||
| 2019-07-04 | Rollup merge of #62258 - petrochenkov:idclean, r=Centril | Mazdak Farrokhzad | -137/+77 | |
| syntax: Unsupport `foo! bar { ... }` macros in the parser Their support in expansion was removed in https://github.com/rust-lang/rust/pull/61606. Also un-reserve `macro_rules` as a macro name, there's no ambiguity between `macro_rules` definitions and macro calls (it also wasn't reserved correctly). cc https://github.com/rust-lang-nursery/wg-grammar/issues/51 | ||||
| 2019-07-03 | Add separate 'async_closure' feature gate. | Mazdak Farrokhzad | -15/+25 | |
| 2019-07-02 | refactor check_for_substitution | Aleksey Kladov | -67/+72 | |
| No behavior change, just flatter and simpler code | ||||
| 2019-07-01 | Convert more usages over | Chris Gregory | -2/+2 | |
| 2019-07-01 | Address review comments | Vadim Petrochenkov | -48/+45 | |
| 2019-07-01 | syntax: Unsupport `foo! bar { ... }` macros in the parser | Vadim Petrochenkov | -93/+36 | |
| Unreserve `macro_rules` as a macro name | ||||
| 2019-06-29 | Always parse 'async unsafe fn' + properly ban in 2015. | Mazdak Farrokhzad | -8/+18 | |
| 2019-06-29 | Remove io::Result from syntax::print | Mark Rousskov | -15/+15 | |
| Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure | ||||
| 2019-06-27 | Rollup merge of #62154 - mark-i-m:old-fixme, r=Centril | Mazdak Farrokhzad | -1/+1 | |
| Remove old fixme fixed in https://github.com/rust-lang/rust/pull/60160 r? @Centril | ||||
| 2019-06-27 | Rollup merge of #62131 - Xanewok:clip-some-nits, r=petrochenkov | Mazdak Farrokhzad | -9/+9 | |
| libsyntax: Fix some Clippy warnings When I was working on it before a lot of these popped up in the RLS so I figured I'll send a small patch fixing only the (hopefully) uncontroversial ones. Others that could be also fixed included also [`clippy::print_with_newline`](https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline) and [`clippy::cast_lossless`](https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless). Should I add them as well? since most of it touches libsyntax... r? @petrochenkov | ||||
| 2019-06-27 | Rollup merge of #62124 - matklad:without-with, r=petrochenkov | Mazdak Farrokhzad | -139/+121 | |
| refactor lexer to use idiomatic borrowing | ||||
| 2019-06-26 | remove old fixme | Mark Mansi | -1/+1 | |
| 2019-06-26 | Fix clippy::redundant_field_names | Igor Matuszewski | -9/+9 | |
| 2019-06-25 | cleanup: rename name_from to symbol_from | Aleksey Kladov | -20/+19 | |
| Lexer uses Symbols for a lot of stuff, not only for identifiers, so the "name" terminology is just confusing. | ||||
| 2019-06-25 | refactor lexer to use idiomatic borrowing | Aleksey Kladov | -121/+104 | |
| 2019-06-25 | Auto merge of #60732 - jswrenn:arbitrary_enum_discriminant, r=pnkfelix | bors | -36/+43 | |
| Implement arbitrary_enum_discriminant Implements RFC rust-lang/rfcs#2363 (tracking issue #60553). | ||||
| 2019-06-24 | Auto merge of #62075 - Centril:guardless-match-arms, r=petrochenkov | bors | -2/+2 | |
| 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 | -2/+2 | |
| 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 | |
