summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
AgeCommit message (Expand)AuthorLines
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-18/+12
2024-09-18Add suggestions for expressions in patternsLieselotte-2/+8
2024-08-24Rollup merge of #128524 - chenyukang:yukang-fix-127930-invalid-outer-style-su...Trevor Gross-0/+5
2024-08-16Overhaul token collection.Nicholas Nethercote-17/+45
2024-08-16Convert a bool to `Trailing`.Nicholas Nethercote-6/+7
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-2/+2
2024-08-11Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errorsMatthias Krüger-3/+3
2024-08-09parser: ensure let stmt compound assignment removal suggestion respect codepo...许杰友 Jieyou Xu (Joe)-2/+6
2024-08-07Use more slice patterns inside the compilerLeón Orell Valerian Liehr-3/+3
2024-08-04don't suggest turning crate-level attributes into outer styleyukang-0/+5
2024-08-01Move a comment to a better spot.Nicholas Nethercote-2/+1
2024-07-31Remove `LhsExpr`.Nicholas Nethercote-4/+2
2024-07-31Inline and remove `parse_local_mk`.Nicholas Nethercote-16/+6
2024-07-29Reformat `use` declarations.Nicholas Nethercote-17/+17
2024-07-19Only check `force_collect` in `collect_tokens_trailing_token`.Nicholas Nethercote-16/+17
2024-07-19Don't always force collect tokens in `recover_stmt_local_after_let`.Nicholas Nethercote-6/+9
2024-07-18Remove `TrailingToken`.Nicholas Nethercote-16/+4
2024-07-17Rollup merge of #127806 - nnethercote:parser-improvements, r=spastorinoTrevor Gross-2/+2
2024-07-16Reorder `Parser::parse_expr_dot_or_call_with` arguments.Nicholas Nethercote-2/+2
2024-07-12Make parse error suggestions verbose and fix spansEsteban Küber-3/+5
2024-06-19Refactor `parse_expr_res`.Nicholas Nethercote-2/+2
2024-06-19Refactor `LhsExpr`.Nicholas Nethercote-8/+3
2024-06-06Reduce `pub` exposure.Nicholas Nethercote-1/+1
2024-05-22Rollup merge of #125049 - dtolnay:castbrace, r=compiler-errorsLeón Orell Valerian Liehr-11/+17
2024-05-17Clarify that the diff_marker is talking about version control systemardi-2/+2
2024-05-12Disallow cast with trailing braced macro in let-elseDavid Tolnay-11/+17
2024-05-09Add `ErrorGuaranteed` to `Recovered::Yes` and use it more.Nicholas Nethercote-6/+2
2024-03-21Use better variable names in some `maybe_whole!` calls.Nicholas Nethercote-2/+2
2024-03-21Use `maybe_whole!` to streamline `parse_stmt_without_recovery`.Nicholas Nethercote-11/+5
2024-03-14Rename `ast::StmtKind::Local` into `ast::StmtKind::Let`Guillaume Gomez-4/+4
2024-03-08Rollup merge of #119365 - nbdd0121:asm-goto, r=AmanieuMatthias Krüger-1/+1
2024-03-06Cancel parsing ever made during recoveryclubby789-6/+10
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-3/+3
2024-03-01Detect more cases of `=` to `:` typoEsteban Küber-10/+64
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-5/+2
2024-02-27Refactor `take_for_recovery` call sites.Nicholas Nethercote-2/+1
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-28/+36
2024-02-24Add asm label support to AST and HIRGary Guo-1/+1
2024-02-20Add newtype for parser recoveryclubby789-3/+3
2024-02-20Add newtype for raw identsclubby789-1/+1
2024-01-18Suggest wrapping mac args in parens rather than the whole expressionMichael Goulet-4/+11
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-3/+3
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-10/+11
2023-12-24Remove `Parser` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-1/+1
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-2/+2
2023-11-29Rollup merge of #118394 - nnethercote:rm-hir-Ops, r=cjgillotMatthias Krüger-2/+2
2023-11-28Rename `BinOpKind::lazy` as `BinOpKind::is_lazy`.Nicholas Nethercote-1/+1
2023-11-28Rework `ast::BinOpKind::to_string` and `ast::UnOp::to_string`.Nicholas Nethercote-1/+1
2023-11-27Change help message to make some sense in broader contextHirochika Matsumoto-1/+1
2023-11-27Address review feedbacksHirochika Matsumoto-16/+17