Skip to content

Commit 7d1dbdf

Browse files
committed
Update IfLet syntax
1 parent fce4c79 commit 7d1dbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ impl<'hir> Guard<'hir> {
13321332
/// - `if let x = e`
13331333
pub fn body(&self) -> &'hir Expr<'hir> {
13341334
match self {
1335-
Guard::If(e) | Guard::IfLet(_, e) => e,
1335+
Guard::If(e) | Guard::IfLet(Let { init: e, .. }) => e,
13361336
}
13371337
}
13381338
}

0 commit comments

Comments
 (0)