| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-04-03 | Auto merge of #88672 - camelid:inc-parser-sugg, r=davidtwco | bors | -1/+213 | |
| Suggest `i += 1` when we see `i++` or `++i` Closes #83502 (for `i++` and `++i`; `--i` should be covered by #82987, and `i--` is tricky to handle). This is a continuation of #83536. r? `@estebank` | ||||
| 2022-04-02 | Fix doctest multi-line mod attributes handling | Guillaume Gomez | -0/+4 | |
| 2022-03-30 | Spellchecking compiler comments | Yuri Astrakhan | -1/+1 | |
| This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues. | ||||
| 2022-03-27 | Fix from rebase | Noah Lev | -5/+5 | |
| I changed the test functions to be `pub` rather than called from a `main` function too, for easier future modification of tests. | ||||
| 2022-03-25 | diagnostics: correct generic bounds with doubled colon | Michael Howell | -0/+28 | |
| Fixes #95208 | ||||
| 2022-03-23 | Fix rustfix panic on test | Noah Lev | -1/+1 | |
| `run-rustfix` applies all suggestions regardless of their Applicability. There's a flag, `rustfix-only-machine-applicable`, that does what it says, but then the produced `.fixed` file would have invalid code from the suggestions that weren't applied. So, I moved the cases of postfix increment, in which case multiple suggestions are given, to the `-notfixed` test, which does not run rustfix. I also changed the Applicability to Unspecified since MaybeIncorrect requires that the code be valid, even if it's incorrect. | ||||
| 2022-03-23 | Use `multipart_suggestions` | Noah Lev | -48/+54 | |
| This records that the suggestions are mutually-exclusive (i.e., only one should be applied). | ||||
| 2022-03-23 | Change temporary variable name if it would conflict | Noah Lev | -7/+4 | |
| 2022-03-23 | Make `standalone` an enum | Noah Lev | -13/+25 | |
| 2022-03-23 | Improve function names | Noah Lev | -2/+2 | |
| 2022-03-23 | Improve handling of `tmp` variable name conflicts | Noah Lev | -2/+6 | |
| 2022-03-23 | Emit both subexp and standalone sugg for postfix | Noah Lev | -28/+54 | |
| This solves the TODO. | ||||
| 2022-03-23 | Emit structured suggestions for field accesses too | Noah Lev | -22/+11 | |
| 2022-03-23 | Refactor, handle fields better, add field tests | Noah Lev | -10/+10 | |
| 2022-03-23 | Reduce rightward drift | Noah Lev | -31/+30 | |
| 2022-03-23 | Remove error recovery todos | Noah Lev | -15/+9 | |
| 2022-03-23 | Move increment checks to improve errors | Noah Lev | -43/+185 | |
| 2022-03-23 | Suggest `i += 1` when we see `i++` or `++i` | Camelid | -0/+43 | |
| 2022-03-17 | Rollup merge of #94731 - TaKO8Ki:const-generic-expr-recovery, ↵ | Dylan DPC | -22/+65 | |
| r=davidtwco,oli-obk Suggest adding `{ .. }` around a const function call with arguments closes #91020 | ||||
| 2022-03-15 | use `format_args_capture` in some parts of rustc_parse | Takayuki Maeda | -14/+14 | |
| 2022-03-12 | Use consistent prose for `::` | Michael Howell | -1/+1 | |
| Co-authored-by: Camille Gillot <gillot.camille@gmail.com> | ||||
| 2022-03-11 | diagnostics: single colon within `<>` probably, not type ascription | Michael Howell | -0/+13 | |
| Fixes #94812 | ||||
| 2022-03-10 | replace `self.clone()` with `self.create_snapshot_for_diagnostic()` | Takayuki Maeda | -22/+22 | |
| 2022-03-10 | add doc comments | Takayuki Maeda | -3/+12 | |
| 2022-03-09 | implement `SnapshotParser` struct | Takayuki Maeda | -3/+30 | |
| 2022-03-09 | implement and use `diagnostic_snapshot` | Takayuki Maeda | -0/+7 | |
| 2022-03-04 | Do not recover from `Ty?` in macro parsing | Esteban Kuber | -3/+3 | |
| Follow up to #92746. Address #94510. | ||||
| 2022-03-02 | rename ErrorReported -> ErrorGuaranteed | mark | -11/+11 | |
| 2022-02-28 | Rollup merge of #94445 - c410-f3r:more-let-chains, r=cjgillot | Matthias Krüger | -39/+39 | |
| 4 - Make more use of `let_chains` Continuation of #94376. cc #53667 | ||||
| 2022-02-28 | Tweak diagnostics | Esteban Kuber | -14/+39 | |
| * Recover from invalid `'label: ` before block. * Make suggestion to enclose statements in a block multipart. * Point at `match`, `while`, `loop` and `unsafe` keywords when failing to parse their expression. * Do not suggest `{ ; }`. * Do not suggest `|` when very unlikely to be what was wanted (in `let` statements). | ||||
| 2022-02-28 | 4 - Make more use of `let_chains` | Caio | -39/+39 | |
| Continuation of #94376. cc #53667 | ||||
| 2022-02-25 | Suggest {} around more bad const generic exprs | Michael Goulet | -16/+23 | |
| 2022-02-23 | rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission". | Eduard-Mihai Burtescu | -10/+22 | |
| 2022-02-23 | rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`. | Eduard-Mihai Burtescu | -21/+18 | |
| 2022-02-23 | Replace `&mut DiagnosticBuilder`, in signatures, with `&mut Diagnostic`. | Eduard-Mihai Burtescu | -6/+6 | |
| 2022-02-03 | compiler: clippy::complexity fixes | Matthias Krüger | -4/+4 | |
| useless_format map_flatten useless_conversion needless_bool filter_next clone_on_copy needless_option_as_deref | ||||
| 2022-01-27 | Improve suggestion for escaping reserved keywords | Noah Lev | -4/+4 | |
| 2022-01-25 | delay the bug once again, generalize turbofish suggestion | Michael Goulet | -18/+12 | |
| 2022-01-25 | Remove delayed bug when encountering label in bad turbofish | Michael Goulet | -1/+1 | |
| 2022-01-17 | Rollup merge of #92876 - compiler-errors:fix-turbofish-lifetime-suggestion, ↵ | Matthias Krüger | -16/+23 | |
| r=nagisa Fix suggesting turbofish with lifetime arguments Now we suggest turbofish correctly given exprs like `foo<'_>`. Also fix suggestion when we have `let x = foo<bar, baz>;` which was broken. | ||||
| 2022-01-16 | Rollup merge of #92746 - estebank:question-mark-in-type, r=davidtwco | Matthias Krüger | -1/+29 | |
| Parse `Ty?` as `Option<Ty>` and provide structured suggestion Swift has specific syntax that desugars to `Option<T>` similar to our `?` operator, which means that people might try to use it in Rust. Parse it and gracefully recover. | ||||
| 2022-01-13 | Fix suggesting turbofish with lifetime arguments | Michael Goulet | -16/+23 | |
| 2022-01-14 | Parse `Ty?` as `Option<Ty>` and provide structured suggestion | Esteban Kuber | -1/+29 | |
| Swift has specific syntax that desugars to `Option<T>` similar to our `?` operator, which means that people might try to use it in Rust. Parse it and gracefully recover. | ||||
| 2022-01-09 | eplace usages of vec![].into_iter with [].into_iter | Lucas Kent | -2/+2 | |
| 2021-12-14 | fix clippy::single_char_pattern perf findings | Matthias Krüger | -1/+1 | |
| 2021-12-09 | Remove redundant [..]s | est31 | -3/+3 | |
| 2021-12-04 | Do not add `;` to expected tokens list when it's wrong | Michael Howell | -1/+2 | |
| There's a few spots where semicolons are checked for to do error recovery, and should not be suggested (or checked for other stuff). Fixes #87647 | ||||
| 2021-11-29 | review comments: clean up | Esteban Kuber | -2/+180 | |
| 2021-11-25 | Auto merge of #85346 - estebank:issue-84946, r=nagisa,varkor | bors | -6/+73 | |
| Account for incorrect `impl Foo<const N: ty> {}` syntax Fix #84946 | ||||
| 2021-11-24 | Tweak span and add more tests | Esteban Kuber | -5/+2 | |
