about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
AgeCommit message (Expand)AuthorLines
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-13/+13
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-23/+15
2024-02-26Properly emit `expected ;` on `#[attr] expr`Lieselotte-4/+2
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-39/+51
2024-02-25Rollup merge of #121060 - clubby789:bool-newtypes, r=cjgillotMatthias Krüger-28/+28
2024-02-20Use `Recovered` moreclubby789-12/+13
2024-02-20Add newtype for parser recoveryclubby789-10/+8
2024-02-20Add newtype for raw identsclubby789-6/+7
2024-02-19Prefer `DiagnosticBuilder` over `Diagnostic` in diagnostic modifiers.Nicholas Nethercote-6/+6
2024-02-17Rollup merge of #121231 - matthiaskrgr:cloone, r=compiler-errorsMatthias Krüger-2/+2
2024-02-17Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercoteMatthias Krüger-1/+1
2024-02-17remove a couple of redundant clonesMatthias Krüger-2/+2
2024-02-15errors: only eagerly translate subdiagnosticsDavid Wood-1/+1
2024-02-15Add an `ErrorGuaranteed` to `ast::TyKind::Err`.Nicholas Nethercote-9/+11
2024-02-12Properly handle `async` blocks and `fn`s in `if` exprs without `else`Esteban Küber-1/+1
2024-01-27Rollup merge of #118182 - estebank:issue-118164, r=davidtwcoMatthias Krüger-2/+17
2024-01-26Properly recover from trailing attr in bodyEsteban Küber-2/+17
2024-01-26Rollup merge of #119342 - sjwang05:issue-112254, r=wesleywiserMatthias Krüger-5/+20
2024-01-10Rename consuming chaining methods on `DiagnosticBuilder`.Nicholas Nethercote-2/+2
2024-01-08Emit suggestion when trying to write exclusive ranges as `..<`sjwang05-5/+20
2024-01-08Remove a fourth `DiagnosticBuilder::emit_without_consuming` call.Nicholas Nethercote-9/+8
2024-01-08Remove a second `DiagnosticBuilder::emit_without_consuming` call.Nicholas Nethercote-11/+6
2024-01-08Remove a `DiagnosticBuilder::emit_without_consuming` call.Nicholas Nethercote-4/+7
2024-01-08Use chaining for `DiagnosticBuilder` construction and `emit`.Nicholas Nethercote-9/+10
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-5/+5
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-2/+2
2023-12-28Use filter instead of filter_map in Parser::expected_one_of_not_foundDaniPopes-18/+20
2023-12-27Auto merge of #117303 - sjwang05:issue-117245, r=estebankbors-0/+20
2023-12-26Suggest `=>` --> `>=` in conditionssjwang05-0/+20
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-30/+30
2023-12-24Remove `Parser` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-26/+12
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-12/+9
2023-12-22Auto merge of #119097 - nnethercote:fix-EmissionGuarantee, r=compiler-errorsbors-12/+10
2023-12-20Rollup merge of #118691 - chfogelman:improve-cstr-error, r=fmeaseMatthias Krüger-7/+29
2023-12-19Improve compiler error for c-strings in pre-2021Carter Hunt Fogelman-7/+29
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-12/+10
2023-12-18Rename `Parser::span_diagnostic` as `Parser::dcx`.Nicholas Nethercote-10/+10
2023-12-18Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.Nicholas Nethercote-1/+1
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-3/+3
2023-12-15Change `msg: impl Into<String>` for bug diagnostics.Nicholas Nethercote-2/+2
2023-12-08Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errorsbors-21/+16
2023-12-05Rollup merge of #117922 - estebank:unclosed-generics, r=b-naberMatthias Krüger-9/+34
2023-12-03Detect attempts to expand a macro to a match arm againNadrieril-21/+16
2023-12-03Auto merge of #118542 - chenyukang:yukang-fix-parser-ice-118531, r=cjgillotbors-12/+4
2023-12-02Fix parser ICE from attrsyukang-12/+4
2023-12-02Use `Session::diagnostic` in more places.Nicholas Nethercote-10/+9
2023-12-01Tweak unclosed generics errorsEsteban Küber-9/+34
2023-11-29Change how `for (x in foo) {}` is handledEsteban Küber-37/+6
2023-11-29More accurate span for unnecessary parens suggestionEsteban Küber-24/+5
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-4/+4