about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
AgeCommit message (Expand)AuthorLines
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-2/+2
2022-02-28Rollup merge of #94445 - c410-f3r:more-let-chains, r=cjgillotMatthias Krüger-9/+7
2022-02-28Tweak diagnosticsEsteban Kuber-18/+20
2022-02-284 - Make more use of `let_chains`Caio-9/+7
2022-02-23rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu-2/+5
2022-02-23rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`.Eduard-Mihai Burtescu-2/+2
2022-02-21Better error if the user tries to do assignment ... elseest31-0/+10
2022-02-19Adopt let else in more placesest31-3/+2
2021-12-04Do not add `;` to expected tokens list when it's wrongMichael Howell-4/+10
2021-10-18Rollup merge of #89974 - est31:let_else_if_error, r=nagisaMatthias Krüger-5/+16
2021-10-17Nicer error message if the user attempts to do let...else ifest31-5/+16
2021-10-17Some "parenthesis" and "parentheses" fixesr00ster91-2/+2
2021-09-15Rollup merge of #88690 - m-ou-se:macro-braces-dot-question-expr-parse, r=nagisaManish Goregaokar-11/+14
2021-09-06Accept `m!{ .. }.method()` and `m!{ .. }?` statements.Mara Bos-11/+14
2021-09-03Detect bare blocks with type ascription that were meant to be a `struct` literalEsteban Kuber-1/+8
2021-08-30Handle let-else initializer edge case errorsCameron Steffen-0/+46
2021-08-30Add let-else to ASTCameron Steffen-10/+22
2021-08-25Use if-let guards in the codebaseLéo Lanteri Thauvin-11/+9
2021-06-10Add support for using qualified paths with structs in expression and patternRyan Levick-1/+1
2021-06-06parser: Ensure that all nonterminals have tokens after parsingVadim Petrochenkov-9/+14
2021-05-08Rename `Parser::span_fatal_err` -> `Parser::span_err`Joshua Nelson-1/+1
2021-04-11Implement token-based handling of attributes during expansionAaron Hill-32/+33
2021-03-19stabilize or_patternsmark-3/+2
2021-03-13Improve the wording for the `can't reassign` errorYuki Okushi-1/+2
2021-03-09Rollup merge of #82048 - mark-i-m:or-pat-type-ascription, r=petrochenkovMara Bos-3/+5
2021-03-05use pat<no_top_alt> for patterns in let bindingsmark-3/+5
2021-03-03Detect match arm body without bracesEsteban Küber-1/+1
2021-02-27Combine HasAttrs and HasTokens into AstLikeAaron Hill-1/+1
2021-02-18Rollup merge of #82236 - matthiaskrgr:useless_conv, r=jyn514Dylan DPC-3/+3
2021-02-17avoid converting types into themselves (clippy::useless_conversion)Matthias Krüger-3/+3
2021-02-15Simplify pattern grammar by allowing nested leading vertmark-1/+1
2021-02-13Address review commentsAaron Hill-3/+2
2021-02-13Require passing an `AttrWrapper` to `collect_tokens_trailing_token`Aaron Hill-22/+41
2021-01-22Refactor token collection to capture trailing token immediatelyAaron Hill-77/+93
2021-01-20Force token collection to run when parsing nonterminalsAaron Hill-18/+15
2021-01-13Set tokens on AST node in `collect_tokens`Aaron Hill-9/+1
2020-12-19implement edition-specific :pat behavior for 2015/18mark-2/+2
2020-11-26Only eat semicolons for statements that need themAaron Hill-2/+1
2020-11-26Properly handle attributes on statementsAaron Hill-38/+83
2020-10-07Detect blocks that could be struct expr bodiesEsteban Küber-9/+27
2020-09-15Auto merge of #76171 - estebank:turbofish-the-revenge, r=davidtwcobors-6/+20
2020-09-14Detect turbofish with multiple type params missing leading `::`Esteban Küber-6/+20
2020-09-10Attach tokens to `ast::Stmt`Aaron Hill-1/+1
2020-09-10Attach `TokenStream` to `ast::Block`Aaron Hill-1/+1
2020-09-01Rollup merge of #76132 - Aaron1011:mac-call-stmt, r=petrochenkovTyler Mandry-2/+2
2020-08-30Factor out StmtKind::MacCall fields into `MacCallStmt` structAaron Hill-2/+2
2020-08-30parser: restore some fn visibility for rustfmtCaleb Cartwright-1/+2
2020-08-30mv compiler to compiler/mark-0/+427