about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
AgeCommit message (Expand)AuthorLines
2024-03-05Rename `BuiltinLintDiagnostics` as `BuiltinLintDiag`.Nicholas Nethercote-2/+2
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-30/+30
2024-03-02Auto merge of #121657 - estebank:issue-119665, r=davidtwcobors-2/+2
2024-03-01Detect more cases of `=` to `:` typoEsteban Küber-2/+2
2024-02-29Overhaul how stashed diagnostics work, again.Nicholas Nethercote-14/+15
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-4/+4
2024-02-27Refactor `take_for_recovery` call sites.Nicholas Nethercote-16/+13
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-71/+94
2024-02-25Add `ast::ExprKind::Dummy`Lieselotte-1/+2
2024-02-25Rollup merge of #121060 - clubby789:bool-newtypes, r=cjgillotMatthias Krüger-23/+27
2024-02-20Add newtype for trailing in parserclubby789-2/+2
2024-02-20Add newtype for parser recoveryclubby789-4/+4
2024-02-20Add newtype for raw identsclubby789-17/+21
2024-02-19Prefer `DiagnosticBuilder` over `Diagnostic` in diagnostic modifiers.Nicholas Nethercote-5/+3
2024-02-17Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercoteMatthias Krüger-1/+1
2024-02-15errors: only eagerly translate subdiagnosticsDavid Wood-1/+1
2024-02-15Add `ErrorGuaranteed` to `ast::LitKind::Err`, `token::LitKind::Err`.Nicholas Nethercote-2/+2
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-1/+11
2024-02-02Remove unnecessary `.to_string()`/`.as_str()`strevyn-1/+1
2024-01-30Rollup merge of #120460 - nnethercote:fix-120397, r=compiler-errorsGuillaume Gomez-9/+22
2024-01-29Be more careful about interpreting a label/lifetime as a mistyped char literal.Nicholas Nethercote-2/+15
2024-01-29Tweak comment and naming for `recover_unclosed_char`.Nicholas Nethercote-7/+7
2024-01-28Handle methodcalls & operators in patternsLieselotte-0/+13
2024-01-26Rollup merge of #119342 - sjwang05:issue-112254, r=wesleywiserMatthias Krüger-2/+8
2024-01-20Rollup merge of #120063 - clubby789:remove-box-handling, r=NilstriebGuillaume Gomez-21/+7
2024-01-18Suggest wrapping mac args in parens rather than the whole expressionMichael Goulet-1/+1
2024-01-17Remove `box <expr>` recoveryclubby789-21/+7
2024-01-10Rename consuming chaining methods on `DiagnosticBuilder`.Nicholas Nethercote-2/+2
2024-01-10Rename `{create,emit}_warning` as `{create,emit}_warn`.Nicholas Nethercote-1/+1
2024-01-08Emit suggestion when trying to write exclusive ranges as `..<`sjwang05-2/+8
2024-01-08Remove a second `DiagnosticBuilder::emit_without_consuming` call.Nicholas Nethercote-28/+24
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-9/+8
2024-01-05rustc_span: More consistent span combination operationsVadim Petrochenkov-1/+1
2024-01-05parser: Tiny refactoringVadim Petrochenkov-1/+1
2024-01-02Update after rebaseGeorge Bateman-5/+5
2024-01-02Make offset_of field parsing use metavariable which handles any spacingGeorge Bateman-43/+121
2023-12-28Don't expect bodyless arms if the pattern can never be a never patternLieselotte-1/+7
2023-12-27Auto merge of #117303 - sjwang05:issue-117245, r=estebankbors-0/+10
2023-12-26Suggest `=>` --> `>=` in conditionssjwang05-0/+10
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-51/+51
2023-12-24Remove `Parser` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-3/+3
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-3/+2
2023-12-22Auto merge of #118847 - eholk:for-await, r=compiler-errorsbors-6/+15
2023-12-19Add additional tests and update existing testsEric Holk-1/+2
2023-12-19Plumb awaitness of for loopsEric Holk-6/+14
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-32/+34
2023-12-18Rename `Parser::span_diagnostic` as `Parser::dcx`.Nicholas Nethercote-12/+10
2023-12-18Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.Nicholas Nethercote-1/+1
2023-12-12Rollup merge of #118891 - compiler-errors:async-gen-blocks, r=eholkJubilee-9/+18
2023-12-12Actually parse async gen blocks correctlyMichael Goulet-9/+18