| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-09-16 | Only suggest turbofish in patterns if we may recover | León Orell Valerian Liehr | -0/+21 | |
| 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 | |
| 2023-05-27 | Rollup merge of #111181 - bvanjoi:fix-issue-111148, r=davidtwco | Matthias Krüger | -0/+10 | |
| fix(parse): return unpected when current token is EOF close https://github.com/rust-lang/rust/issues/111148 #111148 panic occurred because [FatalError.raise()](https://github.com/bvanjoi/rust/blob/master/compiler/rustc_parse/src/parser/mod.rs#LL540C3-L540C3) was encountered which caused by `Eof` and `Pound`(the last token) had same span, when parsing `#` in `fn a<<i<Y<w<>#`. <img width="825" alt="image" src="https://user-images.githubusercontent.com/30187863/236612589-9e2c6a0b-18cd-408c-b636-c12a51cbcf1c.png"> There are a few ways to solve this problem: - Change the action assign for [self.last_unexpected_token_span](https://github.com/rust-lang/rust/blob/master/compiler/rustc_parse/src/parser/diagnostics.rs#L592), for example, if current token is `Eof`, then return Error directly. - Avoid triggering the `FatalError` when the current token is `Eof`. I have chosen the second option because executing `expected_one_of_not_found` when the token is `Eof` but not in `ediable` seems reasonable. | ||||
| 2023-05-16 | Rollup merge of #111449 - compiler-errors:recover-impl-generics-correctly, ↵ | Nilstrieb | -0/+14 | |
| r=Nilstrieb Recover `impl<T ?Sized>` correctly Fixes #111327 r? ````@Nilstrieb```` but you can re-roll Alternatively, happy to close this if we're okay with just saying "sorry #111327 is just a poor side-effect of parser ambiguity" 🤷 | ||||
| 2023-05-16 | Rollup merge of #111428 - bvanjoi:fix-109250, r=Nilstrieb | Nilstrieb | -6/+6 | |
| refactor(resolve): clean up the early error return caused by non-call closes https://github.com/rust-lang/rust/issues/109250 It seems no bad happened, r? ``@Nilstrieb`` | ||||
| 2023-05-15 | Recover `impl<T ?Sized>` correctly | Michael Goulet | -0/+14 | |
| 2023-05-13 | fmt | yukang | -2/+1 | |
| 2023-05-13 | Fix ice caused by shorthand fields in NoFieldsForFnCall | yukang | -0/+22 | |
| 2023-05-13 | fix(parse): return unpected when current token is EOF | bohan | -0/+10 | |
| 2023-05-10 | refactor(resolve): clean up the early error return caused by non-call | bohan | -6/+6 | |
| 2023-05-09 | Rollup merge of #110694 - est31:builtin, r=petrochenkov | Dylan DPC | -0/+23 | |
| Implement builtin # syntax and use it for offset_of!(...) Add `builtin #` syntax to the parser, as well as a generic infrastructure to support both item and expression position builtin syntaxes. The PR also uses this infrastructure for the implementation of the `offset_of!` macro, added by #106934. cc `@petrochenkov` `@DrMeepster` cc #110680 `builtin #` tracking issue cc #106655 `offset_of!` tracking issue | ||||
| 2023-05-08 | suggest struct when we get colon in fileds in enum | yukang | -20/+0 | |
| 2023-05-05 | Add feature gate | est31 | -2/+4 | |
| 2023-05-05 | Add parsing for builtin # in expression and item context | est31 | -0/+21 | |
| 2023-05-05 | add hint for =< as <= | Zachary Mayhew | -0/+67 | |
| 2023-05-02 | Implement negative bounds | Michael Goulet | -48/+61 | |
| 2023-05-02 | Auto merge of #109128 - chenyukang:yukang/remove-type-ascription, r=estebank | bors | -353/+226 | |
| Remove type ascription from parser and diagnostics Mostly based on https://github.com/rust-lang/rust/pull/106826 Part of #101728 r? `@estebank` | ||||
