about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
AgeCommit message (Expand)AuthorLines
2022-11-22Split `MacArgs` in two.Nicholas Nethercote-5/+4
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-1/+1
2022-11-15comment feedbackyukang-2/+1
2022-11-15fix #104088, Slightly improve error message for invalid identifieryukang-2/+15
2022-11-13Add `delay_span_bug` to `AttrWrapper::take_for_recovery`Maybe Waffle-5/+7
2022-10-24fix #103425, remove extra type error after missing semicolon erroryukang-29/+36
2022-09-27Rework "inner attribute not permitted" errorsXiretza-2/+7
2022-09-27Migrate more rustc_parse diagnostics to diagnostic structsXiretza-64/+30
2022-09-27Move rustc_parse diagnostic structs to separate moduleXiretza-3/+2
2022-08-22Use `AttrVec` in more places.Nicholas Nethercote-9/+7
2022-08-20Auto merge of #100564 - nnethercote:box-ast-MacCall, r=spastorinobors-1/+1
2022-08-20Rollup merge of #100667 - Xiretza:diag-structs-parser-ivd, r=davidtwcoMatthias Krüger-19/+12
2022-08-17Migrate "invalid variable declaration" errors to SessionDiagnosticXiretza-19/+12
2022-08-17Fix documentation of rustc_parse::parser::Parser::parse_stmt_without_recoveryXiretza-1/+1
2022-08-17Box the `MacCall` in various types.Nicholas Nethercote-1/+1
2022-08-15Rollup merge of #100559 - nnethercote:parser-simplifications, r=compiler-errorsMatthias Krüger-3/+3
2022-08-15Simplify attribute handling in `parse_bottom_expr`.Nicholas Nethercote-3/+3
2022-08-14Rollup merge of #100253 - obeis:issue-100197, r=cjgillotMatthias Krüger-0/+13
2022-08-09Recover from mutable variable declaration where `mut` is placed before `let`Obei Sideg-0/+13
2022-08-04Suggest removing `let` if `let const` is usedObei Sideg-0/+16
2022-06-13Improve parsing errors and suggestions for bad if statementsMichael Goulet-3/+16
2022-06-14Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errorsYuki Okushi-1/+4
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-3/+3
2022-06-12Improves parser diagnostics, fixes #93867threadexception-1/+4
2022-06-02Rollup merge of #97166 - nnethercote:move-conditions-out, r=estebankYuki Okushi-1/+1
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-2/+2
2022-05-19Move condition out of `maybe_recover_from_bad_qpath`.Nicholas Nethercote-1/+1
2022-05-11ast: Introduce some traits to get AST node properties genericallyVadim Petrochenkov-4/+2
2022-04-28rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`Vadim Petrochenkov-8/+8
2022-04-27Avoid producing `NoDelim` values in `MacArgs::delim()`.Nicholas Nethercote-16/+20
2022-04-07Shrink `Nonterminal`.Nicholas Nethercote-2/+2
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