| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | ||||
| 2022-03-06 | Auto merge of #90076 - jackh726:wherethewhere, r=nikomatsakis | bors | -53/+29 | |
| Change location of where clause on GATs Closes #89122 ~Blocked on lang FCP~ r? `@nikomatsakis` | ||||
| 2022-03-05 | Change syntax for TyAlias where clauses | Jack Huey | -53/+29 | |
| 2022-03-05 | Rollup merge of #94633 - ↵ | Ralf Jung | -0/+10 | |
| TaKO8Ki:suggest-removing-semicolon-after-derive-attribute, r=cjgillot Suggest removing a semicolon after derive attributes closes #93942 | ||||
| 2022-03-06 | suggest removing a semicolon after derive attributes | Takayuki Maeda | -0/+10 | |
| use current token span | ||||
| 2022-03-04 | Do not recover from `Ty?` in macro parsing | Esteban Kuber | -15/+27 | |
| Follow up to #92746. Address #94510. | ||||
| 2022-03-03 | Adjusted diagnostic output so that if there is no `use` in a item sequence, | Felix S. Klock II | -1/+4 | |
| then we just suggest the first legal position where you could inject a use. To do this, I added `inject_use_span` field to `ModSpans`, and populate it in parser (it is the span of the first token found after inner attributes, if any). Then I rewrote the use-suggestion code to utilize it, and threw out some stuff that is now unnecessary with this in place. (I think the result is easier to understand.) Then I added a test of issue 87613. | ||||
| 2022-03-03 | Associate multiple with a crate too. | Felix S. Klock II | -3/+2 | |
| 2022-03-03 | refactor: prepare to associate multiple spans with a module. | Felix S. Klock II | -3/+4 | |
| 2022-03-02 | rename ErrorReported -> ErrorGuaranteed | mark | -26/+28 | |
| 2022-02-28 | Rollup merge of #94445 - c410-f3r:more-let-chains, r=cjgillot | Matthias Krüger | -76/+72 | |
| 4 - Make more use of `let_chains` Continuation of #94376. cc #53667 | ||||
| 2022-02-28 | Tweak diagnostics | Esteban Kuber | -54/+150 | |
| * 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 | -76/+72 | |
| Continuation of #94376. cc #53667 | ||||
| 2022-02-25 | Suggest {} around more bad const generic exprs | Michael Goulet | -18/+40 | |
| 2022-02-25 | Rollup merge of #94344 - notriddle:notriddle/suggest-parens-more, r=oli-obk | Matthias Krüger | -2/+16 | |
| diagnostic: suggest parens when users want logical ops, but get closures Fixes #93536 | ||||
| 2022-02-24 | diagnostic: suggest parens when users want logical ops, but get closures | Michael Howell | -2/+16 | |
| 2022-02-23 | rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission". | Eduard-Mihai Burtescu | -39/+62 | |
| 2022-02-23 | rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`. | Eduard-Mihai Burtescu | -46/+46 | |
| 2022-02-23 | rustc_errors: remove `struct_dummy`. | Eduard-Mihai Burtescu | -3/+5 | |
| 2022-02-23 | Replace `&mut DiagnosticBuilder`, in signatures, with `&mut Diagnostic`. | Eduard-Mihai Burtescu | -12/+12 | |
| 2022-02-21 | Better error if the user tries to do assignment ... else | est31 | -0/+10 | |
| 2022-02-20 | Rollup merge of #94146 - est31:let_else, r=cjgillot | Matthias Krüger | -19/+12 | |
| Adopt let else in more places Continuation of #89933, #91018, #91481, #93046, #93590, #94011. I have extended my clippy lint to also recognize tuple passing and match statements. The diff caused by fixing it is way above 1 thousand lines. Thus, I split it up into multiple pull requests to make reviewing easier. This is the biggest of these PRs and handles the changes outside of rustdoc, rustc_typeck, rustc_const_eval, rustc_trait_selection, which were handled in PRs #94139, #94142, #94143, #94144. | ||||
| 2022-02-19 | Adopt let else in more places | est31 | -19/+12 | |
