Skip to content

Commit b4b5981

Browse files
committed
let-chain fmt
1 parent 22fc51f commit b4b5981

File tree

1 file changed

+4
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+4
-1
lines changed

compiler/rustc_parse/src/parser/expr.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,10 @@ impl<'a> Parser<'a> {
30733073
CommaRecoveryMode::EitherTupleOrPipe,
30743074
) {
30753075
Ok(pat) => Ok((pat, self.parse_match_arm_guard()?)),
3076-
Err(err) if let prev_sp = self.prev_token.span && let true = self.eat_keyword(kw::If) => {
3076+
Err(err)
3077+
if let prev_sp = self.prev_token.span
3078+
&& let true = self.eat_keyword(kw::If) =>
3079+
{
30773080
// We know for certain we've found `($pat if` so far.
30783081
let mut cond = match self.parse_match_guard_condition() {
30793082
Ok(cond) => cond,

0 commit comments

Comments
 (0)