about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
AgeCommit message (Expand)AuthorLines
2022-08-15Streamline `parse_path_start_expr`.Nicholas Nethercote-9/+6
2022-08-12Adjust span of closure paramMichael Goulet-1/+1
2022-08-11Rollup merge of #100351 - compiler-errors:diagnostic-convention, r=fee1-deadDylan DPC-1/+1
2022-08-10Do not consider method call receiver as an argument in AST.Camille GILLOT-5/+7
2022-08-10Use &mut Diagnostic instead of &mut DiagnosticBuilder unless neededMichael Goulet-1/+1
2022-08-10suggest a missing semicolon before an arrayTakayuki Maeda-0/+42
2022-08-01Use expr parse restrictions for let expr parsingMichael Goulet-39/+17
2022-07-29dont call type ascription 'cast'Michael Goulet-6/+7
2022-07-25Remove let-chain close brace check.Eric Huss-4/+1
2022-07-16Stabilize `let_chains`Caio-23/+7
2022-07-14Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillotDylan DPC-26/+22
2022-07-13Rollup merge of #99030 - rust-lang:notriddle/field-recovery, r=petrochenkovDylan DPC-0/+18
2022-07-12Update compiler/rustc_parse/src/parser/expr.rsMichael Howell-1/+1
2022-07-12Parse closure bindersMaybe Waffle-26/+22
2022-07-08Fix last let_chains blockerCaio-8/+24
2022-07-07diagnostics: suggest naming a field after failing to parseMichael Howell-0/+13
2022-07-07diagnostics: mention the `:` token when struct fields fail to parseMichael Howell-0/+5
2022-06-25[rustc_parse] Forbid lets in certain placesCaio-3/+27
2022-06-13Improve parsing errors and suggestions for bad if statementsMichael Goulet-40/+66
2022-06-14Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errorsYuki Okushi-4/+22
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-29/+24
2022-06-12Improves parser diagnostics, fixes #93867threadexception-4/+22
2022-06-07Recover missing comma after match armMichael Goulet-13/+38
2022-06-06Add spaces before and after expr in add {} suggestionWaffle Maybe-2/+2
2022-06-05Suggest removing label in `'label: non_block_expr`Maybe Waffle-3/+14
2022-06-05Do not suggest adding labeled block if there are no labeled breaksMaybe Waffle-0/+23
2022-06-05Suggest adding `{}` for `'label: non_block_expr`Maybe Waffle-2/+28
2022-06-02Rollup merge of #97166 - nnethercote:move-conditions-out, r=estebankYuki Okushi-8/+8
2022-05-24Minor improvement on else-no-if diagnosticMichael Goulet-8/+1
2022-05-23Parse expression after `else` as a condition if followed by `{`Michael Goulet-5/+57
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-2/+2
2022-05-19Move condition out of `maybe_recover_from_bad_qpath`.Nicholas Nethercote-8/+8
2022-04-30Add `do yeet` expressions to allow experimentation in nightlyScott McMurray-0/+21
2022-04-29errors: `span_suggestion` takes `impl ToString`David Wood-3/+3
2022-04-28rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`Vadim Petrochenkov-44/+46
2022-04-27Avoid producing `NoDelim` values in `TokenCursorFrame`.Nicholas Nethercote-1/+2
2022-04-07Shrink `Nonterminal`.Nicholas Nethercote-1/+1
2022-04-05errors: implement fallback diagnostic translationDavid Wood-2/+2
2022-04-03Auto merge of #88672 - camelid:inc-parser-sugg, r=davidtwcobors-0/+24
2022-04-01Rollup merge of #95293 - compiler-errors:braces, r=davidtwcoMatthias Krüger-11/+7
2022-03-30Addressed comments by @compiler-errors and @bjorn3Yuri Astrakhan-1/+1
2022-03-30Spellchecking compiler commentsYuri Astrakhan-1/+1
2022-03-24suggest wrapping single-expr blocks in square bracketsMichael Goulet-11/+7
2022-03-23Add heuristic to avoid treating `x + +2` as incrementNoah Lev-0/+1
2022-03-23Improve function namesNoah Lev-2/+2
2022-03-23Emit both subexp and standalone sugg for postfixNoah Lev-3/+1
2022-03-23Refactor, handle fields better, add field testsNoah Lev-8/+8
2022-03-23Move increment checks to improve errorsNoah Lev-0/+25
2022-03-18suggest removing type ascription in bad positionMichael Goulet-6/+35
2022-03-18use `self.create_snapshot_for_diagnostic` instead of `self.clone()`Takayuki Maeda-5/+6