| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-05 | Rollup merge of #65123 - Centril:mac-invoc-in-mut-pat, r=estebank | Tyler Mandry | -1/+5 | |
| Account for macro invocation in `let mut $pat` diagnostic. Fixes https://github.com/rust-lang/rust/issues/65122. r? @estebank | ||||
| 2019-10-05 | Rollup merge of #64909 - estebank:turbofish-reloaded, r=Centril | Tyler Mandry | -14/+153 | |
| When encountering chained operators use heuristics to recover from bad turbofish | ||||
| 2019-10-05 | Account for macro invocation in `let mut $pat` diagnostic. | Mazdak Farrokhzad | -1/+5 | |
| 2019-10-03 | review comments | Esteban Küber | -25/+32 | |
| 2019-10-03 | review comments | Esteban Küber | -20/+17 | |
| 2019-10-03 | review comments | Esteban Küber | -36/+43 | |
| 2019-10-03 | Account for missing turbofish in paths too | Esteban Küber | -4/+43 | |
| 2019-10-03 | review comments | Esteban Küber | -38/+49 | |
| 2019-10-03 | When encountering chained operators use heuristics to recover from bad turbofish | Esteban Küber | -13/+91 | |
| 2019-10-02 | syntax: improve parameter without type suggestions | David Wood | -8/+25 | |
| This commit improves the suggestions provided when function parameters do not have types: - A new suggestion is added for arbitrary self types, which suggests adding `self: ` before the type. - Existing suggestions are now provided when a `<` is found where a `:` was expected (previously only `,` and `)` or trait items), this gives suggestions in the case where the unnamed parameter type is generic in a free function. - The suggestion that a type name be provided (e.g. `fn foo(HashMap<u32>)` -> `fn foo(HashMap: TypeName<u32>)`) will no longer occur when a `<` was found instead of `:`. - The ident will not be used for recovery when a `<` was found instead of `:`. Signed-off-by: David Wood <david@davidtw.co> | ||||
| 2019-10-01 | Rollup merge of #64910 - Centril:params-cleanup, r=petrochenkov | Mazdak Farrokhzad | -563/+495 | |
| syntax: cleanup param, method, and misc parsing Do some misc cleanup of the parser: - Method and parameter parsing is refactored. - A parser for `const | mut` is introduced that https://github.com/rust-lang/rust/pull/64588 can reuse. - Some other misc parsing. Next up in a different PR: - ~Implementing https://github.com/rust-lang/rust/issues/64252.~ -- maybe some other time... - Heavily restructuring up `item.rs` which is a mess (hopefully, no promises ^^). r? @petrochenkov | ||||
| 2019-10-01 | Rollup merge of #64907 - alexreg:tidy-up, r=Mark-Simulacrum | Mazdak Farrokhzad | -1/+1 | |
| A small amount of tidying-up factored out from PR #64648 As requested by @Mark-Simulacrum, I put this in a separate commit to make it easier to review. (As far as I can tell, no violations of the policy here, and they are simply in a separate PR because they're not directly related to the import of that PR.) r? @Mark-Simulacrum | ||||
| 2019-10-01 | Rollup merge of #64887 - Centril:recover-trailing-vert, r=estebank | Mazdak Farrokhzad | -26/+79 | |
| syntax: recover trailing `|` in or-patterns Fixes https://github.com/rust-lang/rust/issues/64879. For example (this also shows that we are sensitive to the typo `||`): ``` error: a trailing `|` is not allowed in an or-pattern --> $DIR/remove-leading-vert.rs:33:11 | LL | A || => {} | - ^^ help: remove the `||` | | | while parsing this or-pattern starting here | = note: alternatives in or-patterns are separated with `|`, not `||` ``` r? @estebank | ||||
| 2019-10-01 | syntax: reformat passing of `FnHeader` to `parse_item_fn`. | Mazdak Farrokhzad | -12/+16 | |
| 2019-10-01 | syntax: de-closure-ify `check_or_expected`. | Mazdak Farrokhzad | -7/+7 | |
| 2019-10-01 | syntax: merge things back into `parse_visibility`. | Mazdak Farrokhzad | -37/+25 | |
| 2019-10-01 | syntax: put helpers of `parse_self_param` in the method. | Mazdak Farrokhzad | -58/+57 | |
| 2019-10-01 | syntax: document some methods. | Mazdak Farrokhzad | -2/+6 | |
| 2019-10-01 | Address review comments | Vadim Petrochenkov | -2/+2 | |
| 2019-09-30 | syntax: Support modern attribute syntax in the `meta` matcher | Vadim Petrochenkov | -17/+22 | |
| 2019-09-30 | syntax: Split `ast::Attribute` into container and inner parts | Vadim Petrochenkov | -2/+1 | |
| 2019-09-30 | syntax: reduce repetition in fn parsing. | Mazdak Farrokhzad | -26/+21 | |
| 2019-09-30 | syntax: stylistic cleanup in item parsing. | Mazdak Farrokhzad | -107/+47 | |
| 2019-09-30 | syntax: fuse more code paths together. | Mazdak Farrokhzad | -48/+51 | |
| 2019-09-30 | syntax: extract `error_on_invalid_abi`. | Mazdak Farrokhzad | -14/+17 | |
| 2019-09-30 | syntax: cleanup `parse_visibility`. | Mazdak Farrokhzad | -53/+69 | |
| 2019-09-30 | syntax: misc cleanup | Mazdak Farrokhzad | -44/+30 | |
| 2019-09-30 | syntax: cleanup `parse_fn_decl`. | Mazdak Farrokhzad | -6/+3 | |
| 2019-09-30 | syntax: reorder param parsing to make more sense. | Mazdak Farrokhzad | -153/+153 | |
| 2019-09-30 | syntax refactor `parse_self_param` (5) | Mazdak Farrokhzad | -22/+21 | |
| 2019-09-30 | syntax refactor `parse_self_param` (4) | Mazdak Farrokhzad | -30/+37 | |
| 2019-09-30 | syntax refactor `parse_self_param` (3) | Mazdak Farrokhzad | -28/+20 | |
| 2019-09-30 | syntax refactor `parse_self_param` (2) | Mazdak Farrokhzad | -11/+16 | |
| 2019-09-30 | syntax refactor `parse_self_param` (1) | Mazdak Farrokhzad | -12/+13 | |
| 2019-09-30 | syntax refactor `parse_fn_params` | Mazdak Farrokhzad | -28/+29 | |
| 2019-09-30 | syntax: `is_named_argument` -> `is_named_param`. | Mazdak Farrokhzad | -2/+2 | |
| 2019-09-30 | syntax: cleanup method parsing. | Mazdak Farrokhzad | -74/+66 | |
| 2019-09-30 | Added backticks for one diagnostic message. | Alexander Regueiro | -1/+1 | |
| 2019-09-29 | Rollup merge of #64894 - Centril:fix-64682, r=petrochenkov | Mazdak Farrokhzad | -76/+41 | |
| syntax: fix dropping of attribute on first param of non-method assocated fn Fixes #64682. The general idea is that we bake parsing of `self` into `parse_param_general` and then we just use standard list parsing. Overall, this simplifies the parsing and makes it more consistent. r? @petrochenkov cc @c410-f3r | ||||
| 2019-09-29 | syntax: fix #64682. | Mazdak Farrokhzad | -76/+41 | |
| Fuse parsing of `self` into `parse_param_general`. | ||||
| 2019-09-29 | syntax: recover trailing `|` in or-patterns. | Mazdak Farrokhzad | -26/+79 | |
| 2019-09-28 | syntax: don't keep a redundant c_variadic flag in the AST. | Eduard-Mihai Burtescu | -8/+6 | |
| 2019-09-27 | Auto merge of #64813 - varkor:node-to-kind, r=Centril | bors | -73/+73 | |
| Rename `*.node` to `*.kind`, and `hair::Pattern*` to `hair::Pat*` In both `ast::Expr` and `hir::Expr`: - Rename `Expr.node` to `Expr.kind`. - Rename `Pat.node` to `Pat.kind`. - Rename `ImplItem.node` to `ImplItem.kind`. - Rename `Lit.node` to `Lit.kind`. - Rename `TraitItem.node` to `TraitItem.kind`. - Rename `Ty.node` to `Ty.kind`. - Rename `Stmt.node` to `Stmt.kind`. - Rename `Item.node` to `Item.kind`. - Rename `ForeignItem.node` to `ForeignItem.kind`. - Rename `MetaItem.node` to `MetaItem.kind`. Also: - Rename `hair::FieldPattern` to `hair::FieldPat`. - Rename `hair::PatternKind` to `hair::PatKind`. - Rename `hair::PatternRange` to `hair::PatRange`. - Rename `PatternContext` to `PatCtxt`. - Rename `PatternTypeProjection` to `PatTyProj`. - Rename `hair::Pattern` to `hair::Pat`. These two sets of changes are grouped together to aid with merging. The only changes are renamings. r? @petrochenkov | ||||
| 2019-09-26 | Rename `MetaItem.node` to `MetaItem.kind` | varkor | -4/+4 | |
| 2019-09-26 | Rename `ForeignItem.node` to `ForeignItem.kind` | varkor | -4/+4 | |
| 2019-09-26 | Rename `Item.node` to `Item.kind` | varkor | -4/+4 | |
| 2019-09-26 | Rename `Stmt.node` to `Stmt.kind` | varkor | -11/+11 | |
| 2019-09-26 | Rename `Ty.node` to `Ty.kind` | varkor | -14/+14 | |
| 2019-09-26 | Rename `TraitItem.node` to `TraitItem.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `Lit.node` to `Lit.kind` | varkor | -4/+4 | |
