Skip to content

Commit c6e5e8c

Browse files
Fix forgotten case in walk_child_exprs()
1 parent 317f4f9 commit c6e5e8c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/hir-def/src/expr_store.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,9 @@ impl ExpressionStore {
675675
f(*expr);
676676
arms.iter().for_each(|arm| {
677677
f(arm.expr);
678+
if let Some(guard) = arm.guard {
679+
f(guard);
680+
}
678681
self.walk_exprs_in_pat(arm.pat, &mut f);
679682
});
680683
}

0 commit comments

Comments
 (0)