Skip to content

Commit c810ee8

Browse files
committed
AST Visitor now walks enum discriminant expression
1 parent 9eb89a6 commit c810ee8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libsyntax/visit.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ pub fn walk_variant<E:Clone, V:Visitor<E>>(visitor:&mut V,
290290
env.clone())
291291
}
292292
}
293+
match variant.node.disr_expr {
294+
Some(expr) => visitor.visit_expr(expr, env),
295+
None => ()
296+
}
293297
}
294298

295299
pub fn skip_ty<E, V:Visitor<E>>(_: &mut V, _: &Ty, _: E) {

0 commit comments

Comments
 (0)