| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-10-03 | Move some tests around | Esteban Küber | -0/+0 | |
| 2023-10-03 | Detect missing `=>` after match guard during parsing | Esteban Küber | -22/+139 | |
| ``` error: expected one of `,`, `:`, or `}`, found `.` --> $DIR/missing-fat-arrow.rs:25:14 | LL | Some(a) if a.value == b { | - while parsing this struct LL | a.value = 1; | -^ expected one of `,`, `:`, or `}` | | | while parsing this struct field | help: try naming a field | LL | a: a.value = 1; | ++ help: you might have meant to start a match arm after the match guard | LL | Some(a) if a.value == b => { | ++ ``` Fix #78585. | ||||
| 2023-09-28 | Tweak wording of missing angle backets in qualified path | Esteban Küber | -1/+6 | |
| 2023-09-22 | Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obk | bors | -2/+2 | |
| adjust how closure/generator types are printed I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type. | ||||
| 2023-09-21 | adjust how closure/generator types and rvalues are printed | Ralf Jung | -2/+2 | |
| 2023-09-21 | add UI test for delimiter errors | yukang | -0/+44 | |
| 2023-09-12 | Only suggest turbofish in patterns if we may recover | León Orell Valerian Liehr | -0/+21 | |
| 2023-09-06 | Rollup merge of #115473 - gurry:113110-expected-item, r=compiler-errors | Matthias Krüger | -0/+29 | |
| Add explanatory note to 'expected item' error Fixes #113110 It changes the diagnostic from this: ``` error: expected item, found `5` --> ../test.rs:1:1 | 1 | 5 | ^ expected item ``` to this: ``` error: expected item, found `5` --> ../test.rs:1:1 | 1 | 5 | ^ expected item | = note: items are things that can appear at the root of a module = note: for a full list see https://doc.rust-lang.org/reference/items.html ``` | ||||
| 2023-09-06 | Add explanatory note to 'expected item' error | Gurinder Singh | -0/+29 | |
| 2023-09-06 | Auto merge of #115371 - matthewjasper:if-let-guard-parsing, r=cjgillot | bors | -2/+47 | |
| Make if let guard parsing consistent with normal guards - Add tests that struct expressions are not allowed in `if let` and `while let` (no change, consistent with `if` and `while`) - Allow struct expressions in `if let` guards (consistent with `if` guards). r? `@cjgillot` Closes #93817 cc #51114 | ||||
| 2023-08-30 | Rollup merge of #114704 - bvanjoi:fix-114636, r=compiler-errors | Matthias Krüger | -38/+44 | |
| parser: not insert dummy field in struct Fixes #114636 This PR eliminates the dummy field, initially introduced in #113999, thereby enabling unrestricted use of `ident.unwrap()`. A side effect of this action is that we can only report the error of the first macro invocation field within the struct node. An alternative solution might be giving a virtual name to the macro, but it appears more complex.(https://github.com/rust-lang/rust/issues/114636#issuecomment-1670228715). Furthermore, if you think https://github.com/rust-lang/rust/issues/114636#issuecomment-1670228715 is a better solution, feel free to close this PR. | ||||
| 2023-08-28 | Allow stuct literals in if let guards | Matthew Jasper | -0/+3 | |
| This is consistent with normal match guards. | ||||
| 2023-08-28 | Add tests for struct literals in if let/while let | Matthew Jasper | -2/+44 | |
| 2023-08-24 | Auto merge of #115131 - frank-king:feature/unnamed-fields-lite, r=petrochenkov | bors | -0/+72 | |
| Parse unnamed fields and anonymous structs or unions (no-recovery) It is part of #114782 which implements #49804. Only parse anonymous structs or unions in struct field definition positions. r? `@petrochenkov` | ||||
| 2023-08-24 | Parse unnamed fields and anonymous structs or unions | Frank King | -0/+72 | |
| Anonymous structs or unions are only allowed in struct field definitions. Co-authored-by: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> | ||||
| 2023-08-21 | discard dummy field for macro invocation when parse struct | bohan | -38/+44 | |
| 2023-08-17 | Auto merge of #114802 - chenyukang:yukang-fix-114979-bad-parens-dyn, r=estebank | bors | -8/+8 | |
| Fix bad suggestion when wrong parentheses around a dyn trait Fixes #114797 | ||||
| 2023-08-16 | Fix bad suggestion when wrong parentheses around a dyn trait | yukang | -8/+8 | |
| 2023-08-15 | Clean up some bad ui testing annotations | Michael Goulet | -3/+8 | |
| 2023-08-07 | relocate tests to pass tidy | darklyspaced | -0/+0 | |
| 2023-08-07 | fix tests | darklyspaced | -25/+2 | |
| 2023-08-07 | test infra added | darklyspaced | -0/+38 | |
| 2023-08-04 | Rollup merge of #113999 - Centri3:macro-arm-expand, r=wesleywiser | Matthias Krüger | -0/+172 | |
| Specify macro is invalid in certain contexts Adds a note when a macro is used where it really shouldn't be. Closes #113766 | ||||
| 2023-08-03 | Rollup merge of #114300 - MU001999:fix/turbofish-pat, r=estebank | Matthias Krüger | -13/+32 | |
| Suggests turbofish in patterns Fixes #114112 r? ```@estebank``` | ||||
| 2023-08-02 | Add test for enum with fields | Catherine Flores | -31/+53 | |
| 2023-08-01 | Suggests turbofish in patterns | Mu001999 | -13/+32 | |
| 2023-07-31 | parser: more friendly hints for handling `async move` in the 2015 edition | bohan | -0/+12 | |
| 2023-07-29 | Auto merge of #114028 - Centri3:ternary-operator, r=compiler-errors | bors | -0/+184 | |
| Gracefully handle ternary operator Fixes #112578 ~~May not be the best way to do this as it doesn't check for a single `:`, so it could perhaps appear even when the actual issue is just a missing semicolon. May not be the biggest deal, though?~~ Nevermind, got it working properly now ^^ | ||||
| 2023-07-28 | Add UI tests for generic const items | León Orell Valerian Liehr | -0/+12 | |
| 2023-07-25 | Remove unnecessary `maybe_ternary_lo` field | Catherine Flores | -19/+50 | |
| 2023-07-25 | Gracefully handle missing ternary operator | Catherine Flores | -0/+153 | |
| 2023-07-24 | Recover from some macros | Catherine Flores | -86/+88 | |
| 2023-07-24 | Specify macro is invalid in certain contexts | Catherine | -0/+148 | |
| 2023-07-22 | Support interpolated block for try and async | Michael Goulet | -0/+35 | |
| 2023-07-11 | Lint against misplaced where-clauses on assoc tys in traits | León Orell Valerian Liehr | -127/+0 | |
| 2023-07-05 | Fix the issue of wrong diagnosis for extern pub fn | yukang | -0/+20 | |
| 2023-07-04 | Detect extra space in keyword for better hint | yukang | -0/+0 | |
| 2023-06-27 | Rollup merge of #112978 - compiler-errors:bad-block-sugg, r=davidtwco | Matthias Krüger | -0/+16 | |
| Add suggestion for bad block fragment error Makes it a bit clearer how to fix this parser restriction | ||||
| 2023-06-27 | Rollup merge of #112518 - chenyukang:yukang-fix-112458, r=davidtwco | Matthias Krüger | -0/+19 | |
| Detect actual span for getting unexpected token from parsing macros Fixes #112458 | ||||
| 2023-06-23 | Add suggestion for bad block fragment error | Michael Goulet | -0/+16 | |
| 2023-06-15 | Handle interpolated literal errors | Michael Goulet | -0/+18 | |
| 2023-06-12 | Fix debug ICE for extern type with where clauses | 许杰友 Jieyou Xu (Joe) | -1/+13 | |
| 2023-06-11 | Detect actual span for getting unexpected token from parsing macros | yukang | -0/+19 | |
| 2023-06-11 | Rollup merge of #112498 - SamZhang3:rust-reference-link-update, r=Nilstrieb | Matthias Krüger | -6/+6 | |
| Update links to Rust Reference in diagnostic Instead of linking to the [old Rust Reference site](https://static.rust-lang.org/doc/master/reference.html#literals), which is severely outdated (Rust 1.17), link to the [current website](https://doc.rust-lang.org/stable/reference/expressions/literal-expr.html) in diagnostic about incorrect literals. | ||||
| 2023-06-10 | Use a better link | Hankai Zhang | -6/+6 | |
| 2023-06-10 | Update links to Rust Reference page on literals in diagnostic | Hankai Zhang | -6/+6 | |
| Instead of linking to the old Rust Reference site on static.rust-lang.org, link to the current website doc.rust-lang.org/stable/reference instead in diagnostic about incorrect literals. | ||||
| 2023-06-10 | reword the message to suggest surrounding with parentheses | yukang | -5/+5 | |
| 2023-06-10 | take care module name for suggesting surround the struct literal in parentheses | yukang | -0/+78 | |
| 2023-06-03 | Fix suggestion for matching struct with `..` on both ends | 许杰友 Jieyou Xu (Joe) | -1/+66 | |
| 2023-05-28 | Recover upon encountering mistyped `Const` in const param def | 许杰友 Jieyou Xu (Joe) | -0/+62 | |
