Add missing case for pat_uniq to syntax::visit

Issue #409
This commit is contained in:
Brian Anderson 2011-09-23 15:58:57 -07:00
parent 27972a6def
commit 122f714fde
3 changed files with 1 additions and 3 deletions

View File

@ -172,6 +172,7 @@ fn visit_pat<E>(p: @pat, e: E, v: vt<E>) {
}
pat_tup(elts) { for elt in elts { v.visit_pat(elt, e, v); } }
pat_box(inner) { v.visit_pat(inner, e, v); }
pat_uniq(inner) { v.visit_pat(inner, e, v); }
_ { }
}
}

View File

@ -1,4 +1,3 @@
// xfail-test
fn main() {
let x = ~{mutable a: ~10, b: ~20};
alt x {

View File

@ -1,5 +1,3 @@
// xfail-test
type foo = {a: int, b: uint};
tag bar { u(~foo); w(int); }