about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
AgeCommit message (Expand)AuthorLines
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
2023-11-27Make tidy test happyHirochika Matsumoto-1/+1
2023-11-27Detect Python-like slicing and suggest how to fixHirochika Matsumoto-0/+16
2023-11-19Rollup merge of #117988 - estebank:issue-106020, r=cjgillotMichael Goulet-0/+14
2023-11-16Handle attempts to have multiple `cfg`d tail expressionsEsteban Küber-0/+14
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-1/+1
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-1/+1
2023-10-20Move where doc comment meant as comment checkEsteban Küber-17/+0
2023-10-13Format all the let chains in compilerMichael Goulet-15/+26
2023-08-03Remove `MacDelimiter`.Nicholas Nethercote-2/+1
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-5/+4
2023-05-29Use `Cow` in `{D,Subd}iagnosticMessage`.Nicholas Nethercote-3/+4
2023-05-18Rollup merge of #111054 - cjgillot:cfg-eval-recover, r=b-naberDylan DPC-1/+2
2023-05-09Rollup merge of #111120 - chenyukang:yukang-suggest-let, r=NilstriebDylan DPC-10/+7
2023-05-08code refactor and fix wrong suggestionyukang-1/+7
2023-05-08Suggest let for possible binding with tyyukang-9/+0
2023-05-05Add parsing for builtin # in expression and item contextest31-1/+5
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-1/+1
2023-05-01Do not recover when parsing stmt in cfg-eval.Camille GILLOT-1/+2
2023-05-01soften the wording for removing type ascriptionyukang-2/+2
2023-05-01Rip it outNilstrieb-20/+107
2023-03-09feat/refactor: improve errors in case of ident with number at startEzra Shaw-12/+0
2023-02-24Replace parse_[sth]_expr with parse_expr_[sth] function namesest31-5/+5
2023-02-21Use `ThinVec` in `ast::Block`.Nicholas Nethercote-4/+9
2023-02-05rustc_parse: remove huge error importsest31-23/+23
2023-02-01rustc_parse: migrate more to diagnostic structsXiretza-2/+3
2023-01-30Replace enum `==`s with `match`es where it makes senseMaybe Waffle-11/+11
2023-01-14Make `LhsExpr::AlreadyParsed` a named structMaybe Waffle-2/+8