| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-10-23 | Migrate all diagnostics | Nilstrieb | -15/+15 | |
| 2022-10-22 | Don't erroneously deny semicolons after closure expr within parentheses in a ↵ | Michael Goulet | -0/+4 | |
| macro | ||||
| 2022-10-21 | Rollup merge of #102922 - kper:bugfix/102902-filtering-json, r=oli-obk | Dylan DPC | -1/+9 | |
| Filtering spans when emitting json According to the issue #102902, we shouldn't emit spans which have an empty span and no suggested replacement. | ||||
| 2022-10-20 | Implement assertions and fixes to not emit empty spans without suggestions | Kevin Per | -1/+9 | |
| 2022-10-18 | Fix the bug of next_point in span | yukang | -4/+4 | |
| 2022-10-14 | more dupe word typos | Rageking8 | -1/+1 | |
| 2022-10-12 | Rollup merge of #102927 - compiler-errors:let, r=davidtwco | Dylan DPC | -6/+11 | |
| Fix `let` keyword removal suggestion in structs (1.) Fixes a bug where, given this code: ```rust struct Foo { let x: i32, } ``` We were parsing the field name as `let` instead of `x`, which causes issues later on in the type-checking phase. (2.) Also, suggestions for `let: i32` as a field regressed, displaying this extra `help:` which is removed by this PR ``` help: remove the let, the `let` keyword is not allowed in struct field definitions | 2 - let: i32, 2 + : i32, ``` (3.) Makes the suggestion text a bit more succinct, since we don't need to re-explain that `let` is not allowed in this position (since it's in a note that follows). This causes the suggestion to render inline as well. cc `@gimbles,` this addresses a few nits I mentioned in your PR. | ||||
| 2022-10-12 | Use `tidy-alphabetical` in the compiler | Nilstrieb | -1/+2 | |
| 2022-10-11 | Fix let removal suggestion in struct | Michael Goulet | -6/+11 | |
| 2022-10-10 | Rollup merge of #101789 - gimbles:let, r=estebank | Matthias Krüger | -1/+17 | |
| `let`'s not needed in struct field definitions Fixes #101683 | ||||
| 2022-10-10 | `let` is not allowed in struct field definitions | gimbles | -1/+17 | |
| Co-authored-by: jyn514 <jyn514@gmail.com> Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com> | ||||
| 2022-10-10 | Rollup merge of #102345 - chenyukang:fix-102182-impl-trait, r=estebank | Yuki Okushi | -2/+34 | |
| Recover from impl Trait in type param bound Fixes #102182 r? ``@estebank`` | ||||
| 2022-10-08 | Stabilize half_open_range_patterns | Urgau | -1/+0 | |
| 2022-10-08 | fix #102182, recover from impl Trait in type param bound | yukang | -2/+34 | |
| 2022-10-03 | Add comments to `TokenCursor::desugar`. | Nicholas Nethercote | -1/+5 | |
| It took me some time to work out what this code was doing. | ||||
| 2022-10-01 | Rollup merge of #102500 - compiler-errors:parse-sess-cleanup, r=cjgillot | Matthias Krüger | -3/+5 | |
| Remove `expr_parentheses_needed` from `ParseSess` Not sure why this method needed to exist on `ParseSess`, but we can achieve the same behavior by just inlining it everywhere. | ||||
| 2022-09-30 | Rollup merge of #102493 - nnethercote:improve-size-assertions-some-more, r=lqd | Matthias Krüger | -8/+10 | |
| Group together more size assertions. Also add a few more assertions for some relevant token-related types. And fix an erroneous comment in `rustc_errors`. r? `@lqd` | ||||
| 2022-10-01 | Group together more size assertions. | Nicholas Nethercote | -8/+10 | |
| Also add a few more assertions for some relevant token-related types. And fix an erroneous comment in `rustc_errors`. | ||||
| 2022-09-30 | Rollup merge of #102350 - TaKO8Ki:incomplete-fn-in-struct-definition, ↵ | Matthias Krüger | -11/+17 | |
| r=fee1-dead Improve errors for incomplete functions in struct definitions Given the following code: ```rust fn main() {} struct Foo { fn } ``` [playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=29139f870511f6918324be5ddc26c345) The current output is: ``` Compiling playground v0.0.1 (/playground) error: functions are not allowed in struct definitions --> src/main.rs:4:5 | 4 | fn | ^^ | = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks = help: see https://doc.rust-lang.org/book/ch05-03-method-syntax.html for more information error: could not compile `playground` due to previous error ``` In this case, rustc should suggest escaping `fn` to use it as an identifier. | ||||
| 2022-09-30 | Remove expr_parentheses_needed from ParseSess | Michael Goulet | -3/+5 | |
| 2022-09-29 | improve E0585 help | Rageking8 | -2/+2 | |
| 2022-09-28 | Auto merge of #101619 - Xiretza:rustc_parse-session-diagnostics, r=davidtwco | bors | -1253/+496 | |
| Migrate more of rustc_parse to SessionDiagnostic Still far from complete, but I thought I'd add a checkpoint here because rebasing was starting to get annoying. | ||||
| 2022-09-27 | Rollup merge of #102284 - compiler-errors:missing-type-in-raw-ptr, r=davidtwco | Matthias Krüger | -4/+7 | |
| Structured suggestion for missing `mut`/`const` in raw pointer Fixes #102261 | ||||
| 2022-09-27 | Implement IntoDiagnosticArg for rustc_ast::token::Token(Kind) | Xiretza | -32/+22 | |
| 2022-09-27 | Don't unnecessarily stringify paths in diagnostics | Xiretza | -9/+9 | |
| 2022-09-27 | Document use of Symbol::to_string() | Xiretza | -0/+2 | |
| 2022-09-27 | Migrate even more diagnostics in rustc_parse to diagnostic structs | Xiretza | -213/+131 | |
| 2022-09-27 | Migrate "struct literal body without path" error to diagnostic struct | Xiretza | -16/+11 | |
| 2022-09-27 | Migrate "expected semicolon" diagnostics to diagnostic structs | Xiretza | -16/+21 | |
| 2022-09-27 | Migrate "expected identifier" diagnostics to diagnostic structs | Xiretza | -42/+60 | |
| 2022-09-27 | Rework "inner attribute not permitted" errors | Xiretza | -58/+58 | |
| 2022-09-27 | Remove error condition in parse_attribute | Xiretza | -25/+12 | |
| This function is only ever called when the `#` has already been consumed, no need to produce an error message here. | ||||
| 2022-09-27 | Migrate more rustc_parse diagnostics to diagnostic structs | Xiretza | -150/+62 | |
| 2022-09-27 | Move rustc_parse diagnostic structs to separate module | Xiretza | -811/+34 | |
| 2022-09-27 | Migrate "invalid literal suffix" diagnostic to diagnostic structs | Xiretza | -47/+56 | |
| 2022-09-27 | Migrate more diagnostics in rustc_parse to diagnostic structs | Xiretza | -218/+402 | |
| 2022-09-28 | improve errors for incomplete functions in struct definitions | Takayuki Maeda | -11/+17 | |
| 2022-09-27 | Structured suggestion for missing mut/const in pointer | Michael Goulet | -4/+7 | |
| 2022-09-27 | add a label to struct/enum/union ident name | Takayuki Maeda | -10/+26 | |
| 2022-09-27 | create a new local var | Takayuki Maeda | -5/+3 | |
| 2022-09-26 | Rollup merge of #102286 - compiler-errors:recover-semi-in-block-item, ↵ | Matthias Krüger | -7/+30 | |
| r=davidtwco Recover some items that expect braces and don't take semicolons Fixes #102262 | ||||
| 2022-09-26 | Auto merge of #102297 - fee1-dead-contrib:rollup-2np0cre, r=fee1-dead | bors | -0/+17 | |
| Rollup of 5 pull requests Successful merges: - #102143 (Recover from struct nested in struct) - #102178 (bootstrap: the backtrace feature is stable, no need to allow it any more) - #102197 (Stabilize const `BTree{Map,Set}::new`) - #102267 (Don't set RUSTC in the bootstrap build script) - #102270 (Remove benches from `rustc_middle`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup | ||||
| 2022-09-25 | Recover some items that expect braces and don't take semicolons | Michael Goulet | -7/+30 | |
| 2022-09-22 | recover from struct nested in struct | Rageking8 | -0/+17 | |
| 2022-09-22 | Add missing code="" attributes to suggestion subdiagnostics | Xiretza | -4/+4 | |
| 2022-09-21 | FIX - adopt new Diagnostic naming in newly migrated modules | Jhonny Bill Mena | -2/+2 | |
| FIX - ambiguous Diagnostic link in docs UPDATE - rename diagnostic_items to IntoDiagnostic and AddToDiagnostic [Gardening] FIX - formatting via `x fmt` FIX - rebase conflicts. NOTE: Confirm wheather or not we want to handle TargetDataLayoutErrorsWrapper this way DELETE - unneeded allow attributes in Handler method FIX - broken test FIX - Rebase conflict UPDATE - rename residual _SessionDiagnostic and fix LintDiag link | ||||
| 2022-09-21 | UPDATE - rename SessionSubdiagnostic macro to Subdiagnostic | Jhonny Bill Mena | -7/+7 | |
| Also renames: - sym::AddSubdiagnostic to sym:: Subdiagnostic - rustc_diagnostic_item = "AddSubdiagnostic" to rustc_diagnostic_item = "Subdiagnostic" | ||||
| 2022-09-21 | UPDATE - rename DiagnosticHandler macro to Diagnostic | Jhonny Bill Mena | -42/+42 | |
| 2022-09-21 | UPDATE - rename DiagnosticHandler trait to IntoDiagnostic | Jhonny Bill Mena | -43/+43 | |
| 2022-09-21 | UPDATE - move SessionDiagnostic from rustc_session to rustc_errors | Jhonny Bill Mena | -1/+1 | |
