Add AST node for pattern macros

This commit is contained in:
Keegan McAllister
2014-05-19 13:29:41 -07:00
parent 28a4ee5eeb
commit 5fdd0e4b05
12 changed files with 36 additions and 2 deletions

View File

@@ -665,6 +665,7 @@ pub fn walk_pat(pat: &Pat, it: |&Pat| -> bool) -> bool {
slice.iter().advance(|&p| walk_pat(p, |p| it(p))) &&
after.iter().advance(|&p| walk_pat(p, |p| it(p)))
}
PatMac(_) => fail!("attempted to analyze unexpanded pattern"),
PatWild | PatWildMulti | PatLit(_) | PatRange(_, _) | PatIdent(_, _, _) |
PatEnum(_, _) => {
true