| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | Add heuristic to avoid treating `x + +2` as increment | Noah Lev | -0/+1 | |
| 2022-03-23 | Improve function names | Noah Lev | -4/+4 | |
| 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 | -31/+55 | |
| 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 | -18/+18 | |
| 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/+210 | |
| 2022-03-23 | Suggest `i += 1` when we see `i++` or `++i` | Camelid | -0/+43 | |
| 2022-03-23 | Rollup merge of #95212 - ↵ | Dylan DPC | -2/+2 | |
| TaKO8Ki:replace-this-clone-with-this-create-snapshot-for-diagnostic, r=Dylan-DPC Replace `this.clone()` with `this.create_snapshot_for_diagnostic()` Use [`create_snapshot_for_diagnostic`](https://github.com/rust-lang/rust/blob/cd119057160cedea245aa2679add56723f3dc784/compiler/rustc_parse/src/parser/diagnostics.rs#L214-L223) I implemented in https://github.com/rust-lang/rust/pull/94731 instead of `this.clone()` to avoid duplicate errors about unclosed delims being emitted when the `Parser` is dropped. | ||||
| 2022-03-22 | Auto merge of #95215 - Dylan-DPC:rollup-l9f9t7l, r=Dylan-DPC | bors | -4/+8 | |
| Rollup of 5 pull requests Successful merges: - #95188 ([`macro-metavar-expr`] Fix generated tokens hygiene) - #95196 (rename LocalState::Uninitialized to Unallocated) - #95197 (Suggest constraining param for unary ops when missing trait impl) - #95200 (Cancel a not emitted error after parsing const generic args) - #95207 (update Termination trait docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup | ||||
| 2022-03-23 | replace `this.clone()` with `this.create_snapshot_for_diagnostic()` | Takayuki Maeda | -2/+2 | |
| 2022-03-22 | Auto merge of #94693 - nnethercote:parser-inlining, r=petrochenkov | bors | -12/+33 | |
| Inline some parser functions Some crates that do a lot of complex declarative macro expansion spend a lot of time parsing (and reparsing) tokens. These commits inline some functions for some minor speed wins. r? `@ghost` | ||||
| 2022-03-22 | cancel a not emitted error after parsing const generic args | Takayuki Maeda | -4/+8 | |
| 2022-03-22 | Split `TokenCursor::{next,next_desugared}` into inlined and non-inlined halves. | Nicholas Nethercote | -10/+24 | |
| 2022-03-22 | Split `Parser::bump_with` into inlined and non-inlined halves. | Nicholas Nethercote | -2/+9 | |
| The call site within `Parser::bump` is hot. Also add an inline annotation to `Parser::next_tok`. It was already being inlined by the compiler; this just makes sure that continues. | ||||
| 2022-03-21 | Auto merge of #95104 - compiler-errors:remove-ascription, r=davidtwco | bors | -6/+35 | |
| suggest removing type ascription in bad parsing position Not sure how to test this with the non-nightly suggestion. Didn't add a new UI test because it already manifests in an existing UI test. Fixes #95014 | ||||
| 2022-03-20 | Rollup merge of #95135 - ↵ | Matthias Krüger | -1/+1 | |
| TaKO8Ki:fix-not-emitted-unmatched-angle-bracket-error, r=Dylan-DPC Fix a not emitted unmatched angle bracket error closes #95128 | ||||
| 2022-03-20 | Take &mut Diagnostic in emit_diagnostic. | Camille GILLOT | -4/+4 | |
| Taking a Diagnostic by move would break the usual pattern `diag.label(..).emit()`. | ||||
| 2022-03-20 | fix a not emitted unmatched angle bracket error | Takayuki Maeda | -1/+1 | |
| 2022-03-18 | suggest removing type ascription in bad position | Michael Goulet | -6/+35 | |
| 2022-03-18 | use `self.create_snapshot_for_diagnostic` instead of `self.clone()` | Takayuki Maeda | -5/+6 | |
| 2022-03-17 | Rollup merge of #94960 - codehorseman:master, r=oli-obk | Dylan DPC | -1/+1 | |
| Fix many spelling mistakes Signed-off-by: codehorseman <cricis@yeah.net> | ||||
| 2022-03-17 | Rollup merge of #94731 - TaKO8Ki:const-generic-expr-recovery, ↵ | Dylan DPC | -36/+88 | |
| r=davidtwco,oli-obk Suggest adding `{ .. }` around a const function call with arguments closes #91020 | ||||
| 2022-03-17 | Rollup merge of #93222 - mark-i-m:errorreported, r=oli-obk | Dylan DPC | -4/+4 | |
| Make ErrorReported impossible to construct outside `rustc_errors` There are a few places were we have to construct it, though, and a few places that are more invasive to change. To do this, we create a constructor with a long obvious name. cc #69426 `@varkor` `@eddyb` `@estebank` I actually didn't see that I was assigned to this issue until now... | ||||
| 2022-03-17 | Rollup merge of #91133 - terrarier2111:unsafe-diagnostic, r=jackh726 | Dylan DPC | -3/+25 | |
| Improve `unsafe` diagnostic This fixes: https://github.com/rust-lang/rust/issues/90880 I didn't use the exact proposed messages though. | ||||
| 2022-03-16 | rustc_error: make ErrorReported impossible to construct | mark | -4/+4 | |
| There are a few places were we have to construct it, though, and a few places that are more invasive to change. To do this, we create a constructor with a long obvious name. | ||||
| 2022-03-16 | resolve the conflict in compiler/rustc_session/src/parse.rs | codehorseman | -1/+1 | |
| Signed-off-by: codehorseman <cricis@yeah.net> | ||||
| 2022-03-15 | Parse inner attributes on inline const block | David Tolnay | -2/+2 | |
| 2022-03-15 | use `format_args_capture` in some parts of rustc_parse | Takayuki Maeda | -61/+60 | |
| 2022-03-15 | Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuber | bors | -5/+8 | |
| More robust fallback for `use` suggestion Our old way to suggest where to add `use`s would first look for pre-existing `use`s in the relevant crate/module, and if there are *no* uses, it would fallback on trying to use another item as the basis for the suggestion. But this was fragile, as illustrated in issue #87613 This PR instead identifies span of the first token after any inner attributes, and uses *that* as the fallback for the `use` suggestion. Fix #87613 | ||||
| 2022-03-12 | Auto merge of #94865 - ↵ | bors | -0/+13 | |
| notriddle:notriddle/single-colon-path-not-const-generics, r=cjgillot diagnostics: single colon within `<>` probably, not type ascription Fixes #94812 | ||||
| 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-11 | Rollup merge of #94839 - ↵ | Dylan DPC | -0/+10 | |
| TaKO8Ki:suggest-using-double-colon-for-struct-field-type, r=cjgillot Suggest using double colon when a struct field type include single colon #92685 | ||||
| 2022-03-11 | fix a suggestion message | Takayuki Maeda | -1/+1 | |
| 2022-03-11 | suggest using double colon when using single colon in struct field type path | Takayuki Maeda | -0/+10 | |
| 2022-03-10 | replace `self.clone()` with `self.create_snapshot_for_diagnostic()` | Takayuki Maeda | -36/+36 | |
| 2022-03-10 | add doc comments | Takayuki Maeda | -5/+14 | |
| 2022-03-09 | implement `SnapshotParser` struct | Takayuki Maeda | -6/+33 | |
| 2022-03-09 | take over unclosed_delims | Takayuki Maeda | -0/+1 | |
| 2022-03-09 | remove an unnecessary comment | Takayuki Maeda | -1/+0 | |
| 2022-03-09 | implement and use `diagnostic_snapshot` | Takayuki Maeda | -2/+8 | |
| 2022-03-09 | initialize unclosed_delims field | Takayuki Maeda | -0/+1 | |
| 2022-03-08 | suggest adding `{ .. }` around a const function with arguments | Takayuki Maeda | -0/+9 | |
| 2022-03-07 | diagnostics: only talk about `Cargo.toml` if running under Cargo | Michael Howell | -6/+3 | |
| Fixes #94646 | ||||
