summary refs log tree commit diff
path: root/src/comp/syntax/visit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/syntax/visit.rs')
-rw-r--r--src/comp/syntax/visit.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/syntax/visit.rs b/src/comp/syntax/visit.rs
index 0601e8285d4..50a4f2cfbfa 100644
--- a/src/comp/syntax/visit.rs
+++ b/src/comp/syntax/visit.rs
@@ -273,7 +273,8 @@ fn visit_exprs<E>(exprs: [@expr], e: E, v: vt<E>) {
 
 fn visit_mac<E>(m: mac, e: E, v: vt<E>) {
     alt m.node {
-      ast::mac_invoc(pth, arg, body) { visit_expr(arg, e, v); }
+      ast::mac_invoc(pth, arg, body) {
+        option::map(arg) {|arg| visit_expr(arg, e, v)}; }
       ast::mac_embed_type(ty) { v.visit_ty(ty, e, v); }
       ast::mac_embed_block(blk) { v.visit_block(blk, e, v); }
       ast::mac_ellipsis { }