We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22fc51f commit b4b5981Copy full SHA for b4b5981
compiler/rustc_parse/src/parser/expr.rs
@@ -3073,7 +3073,10 @@ impl<'a> Parser<'a> {
3073
CommaRecoveryMode::EitherTupleOrPipe,
3074
) {
3075
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) => {
+ Err(err)
3077
+ if let prev_sp = self.prev_token.span
3078
+ && let true = self.eat_keyword(kw::If) =>
3079
+ {
3080
// We know for certain we've found `($pat if` so far.
3081
let mut cond = match self.parse_match_guard_condition() {
3082
Ok(cond) => cond,
0 commit comments