Properly walk pat_lit and pat_range in visit.rs

Issue #1975
This commit is contained in:
Marijn Haverbeke 2012-03-14 17:24:47 +01:00
parent ffa187db25
commit c988800cf5

View file

@ -220,7 +220,9 @@ fn visit_pat<E>(p: @pat, e: E, v: vt<E>) {
visit_path(path, e, v);
option::may(inner, {|subpat| v.visit_pat(subpat, e, v)});
}
_ { }
pat_lit(ex) { v.visit_expr(ex, e, v); }
pat_range(e1, e2) { v.visit_expr(e1, e, v); v.visit_expr(e2, e, v); }
pat_wild {}
}
}