| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-12-22 | Auto merge of #119097 - nnethercote:fix-EmissionGuarantee, r=compiler-errors | bors | -10/+6 | |
| Fix `EmissionGuarantee` There are some problems with the `DiagCtxt` API related to `EmissionGuarantee`. This PR fixes them. r? `@compiler-errors` | ||||
| 2023-12-20 | Give `VariantData::Struct` named fields, to clairfy `recovered`. | Alona Enraght-Moony | -5/+5 | |
| 2023-12-18 | Use `.into_diagnostic()` less. | Nicholas Nethercote | -10/+6 | |
| This commit replaces this pattern: ``` err.into_diagnostic(dcx) ``` with this pattern: ``` dcx.create_err(err) ``` in a lot of places. It's a little shorter, makes the error level explicit, avoids some `IntoDiagnostic` imports, and is a necessary prerequisite for the next commit which will add a `level` arg to `into_diagnostic`. This requires adding `track_caller` on `create_err` to avoid mucking up the output of `tests/ui/track-diagnostics/track4.rs`. It probably should have been there already. | ||||
| 2023-12-18 | Rename `Parser::span_diagnostic` as `Parser::dcx`. | Nicholas Nethercote | -7/+7 | |
| 2023-12-15 | NFC don't convert types to identical types | Matthias Krüger | -1/+1 | |
| 2023-12-10 | remove redundant imports | surechen | -7/+1 | |
| detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR. | ||||
| 2023-12-08 | Support async gen fn | Michael Goulet | -26/+21 | |
| 2023-12-08 | coro_kind -> coroutine_kind | Michael Goulet | -3/+3 | |
| 2023-12-08 | Implement `async gen` blocks | Michael Goulet | -2/+4 | |
| 2023-12-07 | Rollup merge of #116420 - bvanjoi:fix-116203, r=Nilstrieb | Matthias Krüger | -1/+3 | |
| discard invalid spans in external blocks Fixes #116203 This PR has discarded the invalid `const_span`, thereby making the format more neat. r? ``@Nilstrieb`` | ||||
| 2023-12-04 | Address code review feedback | Eric Holk | -1/+1 | |
| 2023-12-04 | Option<CoroutineKind> | Eric Holk | -12/+14 | |
| 2023-12-04 | Merge Async and Gen into CoroutineKind | Eric Holk | -11/+23 | |
| 2023-12-04 | Make async gen fn an error | Eric Holk | -0/+6 | |
| 2023-12-04 | gate gen fn behind gen_blocks | Eric Holk | -0/+4 | |
| 2023-12-04 | Lower return types for gen fn to impl Iterator | Eric Holk | -4/+0 | |
| 2023-12-04 | Add genness to FnHeader | Eric Holk | -1/+2 | |
| 2023-12-02 | Use `Session::diagnostic` in more places. | Nicholas Nethercote | -11/+6 | |
| 2023-11-29 | Always emit help when failing to parse enum variant | Esteban Küber | -2/+7 | |
| 2023-11-29 | Change enum parse recovery | Esteban Küber | -8/+35 | |
| 2023-11-21 | Fix `clippy::needless_borrow` in the compiler | Nilstrieb | -1/+1 | |
| `x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now. | ||||
| 2023-11-16 | More detail when expecting expression but encountering bad macro argument | Esteban Küber | -2/+2 | |
| Partially address #71039. | ||||
| 2023-11-15 | discard invalid spans in external blocks | bohan | -1/+3 | |
| 2023-11-08 | Rollup merge of #117282 - clubby789:recover-wrong-function-header, r=TaKO8Ki | Guillaume Gomez | -3/+37 | |
| Recover from incorrectly ordered/duplicated function keywords Fixes #115714 | ||||
| 2023-11-07 | Auto merge of #117297 - clubby789:fn-trait-missing-paren, r=TaKO8Ki | bors | -0/+12 | |
| Give a better diagnostic for missing parens in Fn* bounds Fixes #108109 It would be nice to try and recover here, but I'm not sure it's worth the effort, especially as the bounds on the recovered function would be incorrect. | ||||
| 2023-11-03 | Auto merge of #117507 - nnethercote:rustc_span, r=Nilstrieb | bors | -2/+2 | |
| `rustc_span` cleanups Just some things I found while looking over this crate. r? `@oli-obk` | ||||
| 2023-11-02 | Minimize `pub` usage in `source_map.rs`. | Nicholas Nethercote | -2/+2 | |
| Most notably, this commit changes the `pub use crate::*;` in that file to `use crate::*;`. This requires a lot of `use` items in other crates to be adjusted, because everything defined within `rustc_span::*` was also available via `rustc_span::source_map::*`, which is bizarre. The commit also removes `SourceMap::span_to_relative_line_string`, which is unused. | ||||
| 2023-11-01 | Rollup merge of #117298 - clubby789:fn-missing-params, r=petrochenkov | Matthias Krüger | -0/+10 | |
| Recover from missing param list in function definitions Addresses the other issue mentioned in #108109 | ||||
| 2023-11-01 | Give a better diagnostic for missing parens in Fn* bounds | clubby789 | -0/+12 | |
| 2023-11-01 | Recover from missing param list in function definitions | clubby789 | -0/+10 | |
| 2023-10-30 | Talk about `gen fn` in diagnostics about `gen fn` | Oli Scherer | -1/+1 | |
| 2023-10-29 | Auto merge of #116889 - MU001999:master, r=petrochenkov | bors | -0/+2 | |
| Eat close paren if capture_cfg to avoid unbalanced parens Fixes #116781 | ||||
| 2023-10-28 | restore snapshot when parse_param_general | Mu001999 | -0/+2 | |
| 2023-10-27 | Recover from incorrectly ordered/duplicated function keywords | clubby789 | -3/+37 | |
| 2023-10-26 | Reserve `gen` keyword for `gen {}` blocks and `gen fn` in 2024 edition | Oli Scherer | -2/+9 | |
| 2023-10-13 | Format all the let chains in compiler | Michael Goulet | -8/+12 | |
| 2023-10-03 | Gate against auto traits pre-expansion | Michael Goulet | -1/+6 | |
| 2023-09-06 | Add explanatory note to 'expected item' error | Gurinder Singh | -4/+8 | |
| 2023-08-30 | Rollup merge of #114704 - bvanjoi:fix-114636, r=compiler-errors | Matthias Krüger | -13/+3 | |
| parser: not insert dummy field in struct Fixes #114636 This PR eliminates the dummy field, initially introduced in #113999, thereby enabling unrestricted use of `ident.unwrap()`. A side effect of this action is that we can only report the error of the first macro invocation field within the struct node. An alternative solution might be giving a virtual name to the macro, but it appears more complex.(https://github.com/rust-lang/rust/issues/114636#issuecomment-1670228715). Furthermore, if you think https://github.com/rust-lang/rust/issues/114636#issuecomment-1670228715 is a better solution, feel free to close this PR. | ||||
| 2023-08-24 | Parse unnamed fields and anonymous structs or unions | Frank King | -3/+5 | |
| Anonymous structs or unions are only allowed in struct field definitions. Co-authored-by: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> | ||||
| 2023-08-21 | discard dummy field for macro invocation when parse struct | bohan | -13/+3 | |
| 2023-08-04 | Rollup merge of #113999 - Centri3:macro-arm-expand, r=wesleywiser | Matthias Krüger | -6/+35 | |
| 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-02 | Add test for enum with fields | Catherine Flores | -6/+1 | |
| 2023-08-03 | Remove `MacDelimiter`. | Nicholas Nethercote | -2/+2 | |
| It's the same as `Delimiter`, minus the `Invisible` variant. I'm generally in favour of using types to make impossible states unrepresentable, but this one feels very low-value, and the conversions between the two types are annoying and confusing. Look at the change in `src/tools/rustfmt/src/expr.rs` for an example: the old code converted from `MacDelimiter` to `Delimiter` and back again, for no good reason. This suggests the author was confused about the types. | ||||
| 2023-07-28 | Parse generic const items | León Orell Valerian Liehr | -20/+128 | |
| 2023-07-24 | Recover from some macros | Catherine Flores | -11/+35 | |
| 2023-07-24 | Specify macro is invalid in certain contexts | Catherine | -8/+18 | |
| 2023-07-05 | Fix the issue of wrong diagnosis for extern pub fn | yukang | -1/+5 | |
| 2023-05-24 | Use `Option::is_some_and` and `Result::is_ok_and` in the compiler | Maybe Waffle | -1/+1 | |
| 2023-05-13 | improve error for `impl<..> impl Trait for Type` | y21 | -4/+18 | |
