| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | ||||
| 2023-01-11 | parser: recover from where clauses placed before tuple struct bodies | León Orell Valerian Liehr | -0/+24 | |
| 2023-01-11 | Detect struct literal needing parentheses | Esteban Küber | -0/+18 | |
| Fix #82051. | ||||
| 2022-12-27 | Recover `fn` keyword as `Fn` trait in bounds | Michael Goulet | -0/+8 | |
| 2022-12-10 | fix #105366, suggest impl in the scenario of typo with fn | yukang | -0/+8 | |
| 2022-11-21 | Match crate and slug names | mejrs | -120/+114 | |
| 2022-11-18 | Rollup merge of #103405 - chenyukang:yukang/fix-103381-and-if, r=compiler-errors | Matthias Krüger | -0/+8 | |
| Detect incorrect chaining of if and if let conditions and recover Fixes #103381 | ||||
| 2022-11-16 | Use `token::Lit` in `ast::ExprKind::Lit`. | Nicholas Nethercote | -90/+0 | |
| Instead of `ast::Lit`. Literal lowering now happens at two different times. Expression literals are lowered when HIR is crated. Attribute literals are lowered during parsing. This commit changes the language very slightly. Some programs that used to not compile now will compile. This is because some invalid literals that are removed by `cfg` or attribute macros will no longer trigger errors. See this comment for more details: https://github.com/rust-lang/rust/pull/102944#issuecomment-1277476773 | ||||
| 2022-11-15 | fix #104088, Slightly improve error message for invalid identifier | yukang | -0/+8 | |
| 2022-11-15 | fix #103381, Detect incorrect chaining of if and if let conditions | yukang | -0/+8 | |
| 2022-11-14 | Rollup merge of #104223 - fmease:recover-fn-ptr-with-generics, r=estebank | Matthias Krüger | -0/+21 | |
| Recover from function pointer types with generic parameter list Give a more helpful error when encountering function pointer types with a generic parameter list like `fn<'a>(&'a str) -> bool` or `fn<T>(T) -> T` and suggest moving lifetime parameters to a `for<>` parameter list. I've added a bunch of extra code to properly handle (unlikely?) corner cases like `for<'a> fn<'b>()` (where there already exists a `for<>` parameter list) correctly suggesting `for<'a, 'b> fn()` (merging the lists). If you deem this useless, I can simplify the code by suggesting nothing at all in this case. I am quite open to suggestions regarding the wording of the diagnostic messages. Fixes #103487. ``@rustbot`` label A-diagnostics r? diagnostics | ||||
| 2022-11-11 | Rollup merge of #103468 - chenyukang:yukang/fix-103435-extra-parentheses, ↵ | Manish Goregaokar | -2/+4 | |
| r=estebank Fix unused lint and parser caring about spaces to won't produce invalid code Fixes #103435 | ||||
| 2022-11-11 | Recover from fn ptr tys with generic param list | León Orell Valerian Liehr | -0/+21 | |
| 2022-11-08 | use subdiagnostic for sugesting add let | yukang | -1/+1 | |
| 2022-11-08 | fix #103587, Recover from common if let syntax mistakes/typos | yukang | -0/+9 | |
| 2022-11-04 | fake a base to suppress later extra error message | yukang | -1/+1 | |
| 2022-11-04 | fix #102806, suggest use .. to fill in the rest of the fields of Struct | yukang | -0/+9 | |
| 2022-11-01 | Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco | Manish Goregaokar | -24/+47 | |
| Change #[suggestion_*] attributes to use style="..." As discussed [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20tool_only_span_suggestion), this changes `#[(multipart_)suggestion_{short,verbose,hidden}(...)]` attributes to plain `#[(multipart_)suggestion(...)]` attributes with a `style = "{short,verbose,hidden}"` parameter. It also adds a new style, `tool-only`, that corresponds to `tool_only_span_suggestion`/`tool_only_multipart_suggestion` and causes the suggestion to not be shown in human-readable output at all. Best reviewed commit-by-commit, there's a bit of noise in there. cc #100717 `@compiler-errors` r? `@davidtwco` | ||||
