| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-11-01 | Rollup merge of #117298 - clubby789:fn-missing-params, r=petrochenkov | Matthias Krüger | -0/+8 | |
| Recover from missing param list in function definitions Addresses the other issue mentioned in #108109 | ||||
| 2023-11-01 | Recover from missing param list in function definitions | clubby789 | -0/+8 | |
| 2023-10-30 | Talk about `gen fn` in diagnostics about `gen fn` | Oli Scherer | -2/+2 | |
| 2023-10-26 | Reserve `gen` keyword for `gen {}` blocks and `gen fn` in 2024 edition | Oli Scherer | -0/+8 | |
| 2023-10-03 | Detect missing `=>` after match guard during parsing | Esteban Küber | -0/+11 | |
| ``` error: expected one of `,`, `:`, or `}`, found `.` --> $DIR/missing-fat-arrow.rs:25:14 | LL | Some(a) if a.value == b { | - while parsing this struct LL | a.value = 1; | -^ expected one of `,`, `:`, or `}` | | | while parsing this struct field | help: try naming a field | LL | a: a.value = 1; | ++ help: you might have meant to start a match arm after the match guard | LL | Some(a) if a.value == b => { | ++ ``` Fix #78585. | ||||
| 2023-09-28 | Tweak wording of missing angle backets in qualified path | Esteban Küber | -2/+11 | |
| 2023-09-13 | Address review comments | Matthew Jasper | -0/+1 | |
| - Add doc comment to new type - Restore "only supported directly in conditions of `if` and `while` expressions" note - Rename variant with clearer name | ||||
| 2023-09-11 | Move let expression checking to parsing | Matthew Jasper | -1/+3 | |
| There was an incomplete version of the check in parsing and a second version in AST validation. This meant that some, but not all, invalid uses were allowed inside macros/disabled cfgs. It also means that later passes have a hard time knowing when the let expression is in a valid location, sometimes causing ICEs. - Add a field to ExprKind::Let in AST/HIR to mark whether it's in a valid location. - Suppress later errors and MIR construction for invalid let expressions. | ||||
| 2023-08-16 | Fix bad suggestion when wrong parentheses around a dyn trait | yukang | -8/+11 | |
| 2023-08-04 | Rollup merge of #113999 - Centri3:macro-arm-expand, r=wesleywiser | Matthias Krüger | -0/+6 | |
| 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 | -0/+14 | |
| Suggests turbofish in patterns Fixes #114112 r? ```@estebank``` | ||||
| 2023-08-01 | Suggests turbofish in patterns | Mu001999 | -0/+14 | |
| 2023-07-31 | parser: more friendly hints for handling `async move` in the 2015 edition | bohan | -0/+7 | |
| 2023-07-29 | Auto merge of #114028 - Centri3:ternary-operator, r=compiler-errors | bors | -0/+8 | |
| 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 | Parse generic const items | León Orell Valerian Liehr | -0/+31 | |
| 2023-07-25 | Gracefully handle missing ternary operator | Catherine Flores | -0/+8 | |
| 2023-07-24 | Specify macro is invalid in certain contexts | Catherine | -0/+6 | |
| 2023-06-23 | Add suggestion for bad block fragment error | Michael Goulet | -0/+11 | |
| 2023-05-13 | improve error for `impl<..> impl Trait for Type` | y21 | -0/+10 | |
| 2023-05-09 | Rollup merge of #111120 - chenyukang:yukang-suggest-let, r=Nilstrieb | Dylan DPC | -0/+12 | |
| Suggest let for possible binding with ty Origin from https://github.com/rust-lang/rust/pull/109128#discussion_r1179866137 r? `@Nilstrieb` | ||||
| 2023-05-09 | move sugg to derive session diagnostic | yukang | -0/+12 | |
| 2023-05-05 | Add parsing for builtin # in expression and item context | est31 | -0/+15 | |
| 2023-05-02 | Implement negative bounds | Michael Goulet | -27/+4 | |
| 2023-05-01 | Rip it out | Nilstrieb | -0/+22 | |
| My type ascription Oh rip it out Ah If you think we live too much then You can sacrifice diagnostics Don't mix your garbage Into my syntax So many weird hacks keep diagnostics alive Yet I don't even step outside So many bad diagnostics keep tyasc alive Yet tyasc doesn't even bother to survive! | ||||
| 2023-04-27 | Migrate trivially translatable `rustc_parse` diagnostics | clubby789 | -0/+224 | |
| 2023-04-25 | Fix static string lints | clubby789 | -0/+89 | |
| 2023-04-10 | Remove `..` from return type notation | Michael Goulet | -0/+8 | |
| 2023-03-28 | Add `(..)` syntax for RTN | Michael Goulet | -0/+8 | |
| 2023-03-19 | refactor: improve "ident starts with number" error | Ezra Shaw | -1/+4 | |
| 2023-03-19 | refactor: refactor identifier parsing somewhat | Ezra Shaw | -3/+3 | |
| 2023-03-12 | Remove `box_syntax` from AST and use in tools | clubby789 | -0/+13 | |
| 2023-03-09 | feat/refactor: improve errors in case of ident with number at start | Ezra Shaw | -8/+9 | |
| 2023-03-01 | recover from for-else and while-else | y21 | -0/+11 | |
| 2023-02-22 | errors: generate typed identifiers in each crate | David Wood | -84/+104 | |
| Instead of loading the Fluent resources for every crate in `rustc_error_messages`, each crate generates typed identifiers for its own diagnostics and creates a static which are pulled together in the `rustc_driver` crate and provided to the diagnostic emitter. Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2023-02-09 | Rollup merge of #107446 - clubby789:rustc-parse-diag-migrate, r=compiler-errors | Matthias Krüger | -0/+312 | |
| Migrate some of `rustc_parse` to derive diagnostics `@rustbot` label +A-translation r? rust-lang/diagnostics cc #100717 | ||||
| 2023-02-06 | Migrate `rustc_parse` to derive diagnostics | clubby789 | -0/+312 | |
| 2023-02-06 | Rollup merge of #107580 - ↵ | Dylan DPC | -0/+8 | |
| lenko-d:default_value_for_a_lifetime_generic_parameter_produces_confusing_diagnostic, r=compiler-errors Recover from lifetimes with default lifetimes in generic args Fixes [#107492](https://github.com/rust-lang/rust/issues/107492) | ||||
| 2023-02-05 | Recover from missing expression in for loop | Obei Sideg | -0/+12 | |
| 2023-02-04 | Recover from default value for a lifetime in generic parameters. | Lenko Donchev | -0/+8 | |
| 2023-02-02 | Rollup merge of #107493 - clubby789:range-fat-arrow-followup, r=estebank | Matthias Krüger | -6/+3 | |
| Improve diagnostic for missing space in range pattern Improves the diagnostic in #107425 by turning it into a note explaining the parsing issue. r? `@compiler-errors` | ||||
| 2023-02-02 | Improve diagnostic for missing space in range pattern | clubby789 | -6/+3 | |
| 2023-02-02 | Recover _ as .. in field pattern | Michael Goulet | -1/+4 | |
| 2023-02-01 | Make "use latest edition" subdiagnostic translatable | Xiretza | -3/+23 | |
| 2023-02-01 | rustc_parse: revert conversion of "non-item in item list" diagnostic | Xiretza | -32/+0 | |
| #[derive(Subdiagnostic)] does not allow multiple subdiagnostics on one variant, as in NonItemInItemListSub::Other. | ||||
| 2023-02-01 | migrate parser::ty to diagnostic structs | Xiretza | -0/+103 | |
| 2023-02-01 | rustc_parse: migrate more to diagnostic structs | Xiretza | -2/+517 | |
| 2023-01-30 | Make the "extra if in let...else block" hint a suggestion | Edward Shen | -1/+1 | |
| 2023-01-28 | Migrate some range parsing diagnostics | clubby789 | -0/+42 | |
| 2023-01-23 | Add suggestion to remove if in let...else block | Edward Shen | -1/+10 | |
| Adds an additional hint to failures where we encounter an else keyword while we're parsing an if-let block. This is likely that the user has accidentally mixed if-let and let...else together. | ||||
| 2023-01-12 | Auto merge of #106537 - ↵ | bors | -0/+24 | |
| fmease:recover-where-clause-before-tuple-struct-body, r=estebank Recover from where clauses placed before tuple struct bodies Open to any suggestions regarding the phrasing of the diagnostic. Fixes #100790. `@rustbot` label A-diagnostics r? diagnostics | ||||
