about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
AgeCommit message (Expand)AuthorLines
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-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
2023-12-12Don't gate the feature twiceNadrieril-1/+4
2023-12-12Correctly gate the parsing of match arms without bodyNadrieril-1/+6
2023-12-11Add spacing information to delimiters.Nicholas Nethercote-1/+1
2023-12-08Auto merge of #118420 - compiler-errors:async-gen, r=eholkbors-21/+34
2023-12-08Support async gen fnMichael Goulet-14/+22
2023-12-08coro_kind -> coroutine_kindMichael Goulet-1/+1
2023-12-08Implement `async gen` blocksMichael Goulet-9/+14
2023-12-08Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errorsbors-107/+135
2023-12-04Option<CoroutineKind>Eric Holk-6/+4
2023-12-04Merge Async and Gen into CoroutineKindEric Holk-4/+6
2023-12-03Parse a pattern with no armNadrieril-107/+135
2023-12-02Use `Session::diagnostic` in more places.Nicholas Nethercote-9/+9
2023-11-29review comment: rework `parse_for_head` to reduce branchingEsteban Küber-36/+42
2023-11-29Change how `for (x in foo) {}` is handledEsteban Küber-20/+53
2023-11-29Account for `(pat if expr) => {}`Esteban Küber-39/+86
2023-11-29More accurate span for unnecessary parens suggestionEsteban Küber-1/+4
2023-11-28Suggest `let` or `==` on typo'd let-chainEsteban Küber-8/+40
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-6/+6
2023-11-17Auto merge of #114292 - estebank:issue-71039, r=b-naberbors-2/+2
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-2/+2
2023-11-14Detect more `=>` typosEsteban Küber-9/+10
2023-11-09Suggest fix for ; within let-chainssjwang05-4/+20
2023-11-04fmtDinu Blanovschi-3/+1
2023-11-04feat(hir): Store the `Span` of the `move` keywordDinu Blanovschi-1/+4
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-2/+2