Skip to content

Commit 6d537d4

Browse files
committed
resolve: simplify resolve_arm.
1 parent f8835ee commit 6d537d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_resolve/late.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,9 +1210,7 @@ impl<'a, 'b> LateResolutionVisitor<'a, '_> {
12101210
fn resolve_arm(&mut self, arm: &Arm) {
12111211
self.with_rib(ValueNS, NormalRibKind, |this| {
12121212
this.resolve_pats(&arm.pats, PatternSource::Match);
1213-
if let Some(ref expr) = arm.guard {
1214-
this.visit_expr(expr)
1215-
}
1213+
walk_list!(this, visit_expr, &arm.guard);
12161214
this.visit_expr(&arm.body);
12171215
});
12181216
}

0 commit comments

Comments
 (0)