| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-25 | parse: move condition into guard | Mazdak Farrokhzad | -28/+28 | |
| 2020-02-24 | parse: simplify `parse_stmt_without_recovery`. | Mazdak Farrokhzad | -36/+29 | |
| 2020-02-24 | parse: extract `parse_stmt_item` & `parse_stmt_path_start`. | Mazdak Farrokhzad | -32/+33 | |
| 2020-02-24 | syntax: Remove `Nt(Impl,Trait,Foreign)Item` | Vadim Petrochenkov | -8/+0 | |
| 2020-02-24 | don't explicitly compare against true or false | Matthias Krüger | -2/+2 | |
| 2020-02-24 | parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token` | Vadim Petrochenkov | -65/+56 | |
| 2020-02-24 | Add some missing support for `NtIdent` | Vadim Petrochenkov | -4/+3 | |
| 2020-02-24 | parse: tweak diagnostic wordings | Mazdak Farrokhzad | -5/+5 | |
| 2020-02-24 | parse: tweak `parse_item_` for more reuse. | Mazdak Farrokhzad | -19/+9 | |
| 2020-02-24 | parse/ast: move `Defaultness` into variants. | Mazdak Farrokhzad | -32/+32 | |
| 2020-02-24 | parse: `NtItem` -> `parse_item_common`. | Mazdak Farrokhzad | -8/+9 | |
| 2020-02-24 | parser: tweak item kind wording | Mazdak Farrokhzad | -11/+9 | |
| 2020-02-24 | parser: tweak unmatched wording | Mazdak Farrokhzad | -5/+6 | |
| 2020-02-24 | parser: refactor away at_end | Mazdak Farrokhzad | -9/+3 | |
| 2020-02-24 | parse: move token hack into `parse_item_common`. | Mazdak Farrokhzad | -55/+31 | |
| 2020-02-24 | parse: use `parse_item_common` in `parse_assoc_item_`. | Mazdak Farrokhzad | -144/+72 | |
| 2020-02-24 | parse: use `parse_item_common` in `parse_foreign_item`. | Mazdak Farrokhzad | -28/+53 | |
| 2020-02-24 | parse: recover `default` on free items. | Mazdak Farrokhzad | -13/+46 | |
| 2020-02-24 | parse: extract `error_on_unmatched_vis`. | Mazdak Farrokhzad | -10/+16 | |
| 2020-02-24 | ast: add `Defaultness` to `Item`, making `AssocItem` an alias. | Mazdak Farrokhzad | -3/+4 | |
| 2020-02-24 | `parse_defaultness`: avoid hardcoded list of keywords. | Mazdak Farrokhzad | -26/+13 | |
| 2020-02-24 | add `Span` to `ast::Defaultness::Default`. | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-23 | Rollup merge of #69376 - petrochenkov:bumpwith, r=Centril | Dylan DPC | -127/+51 | |
| parser: Cleanup `Parser::bump_with` and its uses Follow-up to https://github.com/rust-lang/rust/pull/69006. r? @Centril | ||||
| 2020-02-23 | Rollup merge of #69375 - Menschenkindlein:master, r=Dylan-DPC | Dylan DPC | -2/+2 | |
| Rename CodeMap to SourceMap follow up See https://github.com/rust-lang/rust/issues/51574 | ||||
| 2020-02-22 | Use multipart suggestion | David Ross | -13/+9 | |
| This is a modified version of estebank's suggestion, with a bit of extra cleanup now that we don't need the different cases for if we can turn a span into a string or not. | ||||
| 2020-02-22 | parser: Cleanup `Parser::bump_with` and its uses | Vadim Petrochenkov | -127/+51 | |
| 2020-02-22 | Rename CodeMap to SourceMap follow up | Maxim Zholobak | -2/+2 | |
| 2020-02-22 | parse: allow `type Foo: Ord` syntactically. | Mazdak Farrokhzad | -20/+12 | |
| 2020-02-18 | Rollup merge of #69236 - Centril:mut-parens-at-recovery, r=estebank | Mazdak Farrokhzad | -16/+13 | |
| parse: recover `mut (x @ y)` as `(mut x @ mut y)`. Follow up to https://github.com/rust-lang/rust/pull/68992#discussion_r376829749 and https://github.com/rust-lang/rust/pull/63945. Specifically, when given `let mut (x @ y)` we recover with `let (mut x @ mut y)` as the suggestion: ```rust error: `mut` must be attached to each individual binding --> $DIR/mut-patterns.rs:12:9 | LL | let mut (x @ y) = 0; | ^^^^^^^^^^^ help: add `mut` to each binding: `(mut x @ mut y)` | = note: `mut` may be followed by `variable` and `variable @ pattern` ``` r? @matthewjasper @estebank | ||||
| 2020-02-18 | Rollup merge of #69211 - petrochenkov:prevtok, r=Centril | Mazdak Farrokhzad | -70/+43 | |
| parser: Simplify treatment of macro variables in `Parser::bump` Follow-up to https://github.com/rust-lang/rust/pull/69006. Token normalization for `$ident` and `$lifetime` is merged directly into `bump`. Special "unknown macro variable" diagnostic for unexpected `$`s is removed as preventing legal code from compiling (as a result `bump` also doesn't call itself recursively anymore and can't make `prev_token` inconsistent). r? @Centril | ||||
| 2020-02-18 | Rollup merge of #69194 - Centril:assoc-extern-fuse, r=petrochenkov | Mazdak Farrokhzad | -117/+91 | |
| parse: fuse associated and extern items up to defaultness Language changes: - The grammar of extern `type` aliases is unified with associated ones, and becomes: ```rust TypeItem = "type" ident generics {":" bounds}? where_clause {"=" type}? ";" ; ``` Semantic restrictions (`ast_validation`) are added to forbid any parameters in `generics`, any bounds in `bounds`, and any predicates in `where_clause`, as well as the presence of a type expression (`= u8`). (Work still remains to fuse this with free `type` aliases, but this can be done later.) - The grammar of constants and static items (free, associated, and extern) now permits the absence of an expression, and becomes: ```rust GlobalItem = {"const" {ident | "_"} | "static" "mut"? ident} {"=" expr}? ";" ; ``` - A semantic restriction is added to enforce the presence of the expression (the body). - A semantic restriction is added to reject `const _` in associated contexts. Together, these changes allow us to fuse the grammar of associated items and extern items up to `default`ness which is the main goal of the PR. ----------------------- We are now very close to fully fusing the entirely of item parsing and their ASTs. To progress further, we must make a decision: should we parse e.g. `default use foo::bar;` and whatnot? Accepting that is likely easiest from a parsing perspective, as it does not require using look-ahead, but it is perhaps not too onerous to only accept it for `fn`s (and all their various qualifiers), `const`s, `static`s, and `type`s. r? @petrochenkov | ||||
| 2020-02-17 | parser: Remove `Option`s from unnormalized tokens | Vadim Petrochenkov | -39/+22 | |
| They are always set synchronously with normalized tokens now | ||||
| 2020-02-17 | parser: Set previous and unnormalized tokens in couple more places | Vadim Petrochenkov | -7/+8 | |
| 2020-02-17 | parser: Do not call `bump` recursively | Vadim Petrochenkov | -43/+32 | |
| Token normalization is merged directly into `bump`. Special "unknown macro variable" diagnostic for unexpected `$`s is removed as preventing legal code from compiling. | ||||
| 2020-02-17 | parse: recover `mut (x @ y)` as `(mut x @ mut y)`. | Mazdak Farrokhzad | -16/+13 | |
| 2020-02-17 | Auto merge of #69129 - Centril:macro-legacy-errors, r=petrochenkov | bors | -53/+9 | |
| Transition macro_legacy_warnings into a hard error Fixes https://github.com/rust-lang/rust/issues/67098. r? @petrochenkov | ||||
| 2020-02-17 | Rollup merge of #69186 - petrochenkov:kwrules, r=Centril | Yuki Okushi | -2/+2 | |
| [tiny] parser: `macro_rules` is a weak keyword r? @Centril | ||||
| 2020-02-17 | Rename `FunctionRetTy` to `FnRetTy` | Yuki Okushi | -10/+6 | |
| 2020-02-15 | Remove extra debug print in unreachable! | David Ross | -2/+1 | |
| 2020-02-15 | Keep better fix suggestion if type ascription is likely unintended | David Ross | -9/+15 | |
| 2020-02-15 | Type ascription outputs a Type, not Cast | David Ross | -1/+3 | |
| Previously this just errored out on all usages of type ascription, which isn't helpful. | ||||
| 2020-02-15 | Refactor out error case & apply suggestions. | David Ross | -20/+42 | |
| This is almost entirely refactoring and message changing, with the single behavioral change of panicking for unexpected output. | ||||
| 2020-02-15 | Parse & reject postfix operators after casts | David Ross | -2/+39 | |
| This adds parsing for expressions like 'x as Ty[0]' which will immediately error out, but still give the rest of the parser a valid parse tree to continue. | ||||
| 2020-02-15 | reject assoc statics & extern consts during parsing | Mazdak Farrokhzad | -1/+26 | |
| 2020-02-15 | Record proc macro harness order for use during metadata deserialization | Aaron Hill | -0/+2 | |
| Fixes #68690 When we generate the proc macro harness, we now explicitly recorder the order in which we generate entries. We then use this ordering data to deserialize the correct proc-macro-data from the crate metadata. | ||||
| 2020-02-15 | fuse extern & associated item parsing up to defaultness | Mazdak Farrokhzad | -77/+39 | |
| 2020-02-15 | parse extern consts | Mazdak Farrokhzad | -21/+6 | |
| 2020-02-15 | parse associated statics. | Mazdak Farrokhzad | -10/+8 | |
| 2020-02-15 | ast/parser: fuse `static` & `const` grammars in all contexts. | Mazdak Farrokhzad | -16/+21 | |
| 2020-02-15 | ast: make `= <expr>;` optional in free statics/consts. | Mazdak Farrokhzad | -11/+8 | |
