Skip to content

Commit 122f714

Browse files
committed
Add missing case for pat_uniq to syntax::visit
Issue #409
1 parent 27972a6 commit 122f714

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/comp/syntax/visit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ fn visit_pat<E>(p: @pat, e: E, v: vt<E>) {
172172
}
173173
pat_tup(elts) { for elt in elts { v.visit_pat(elt, e, v); } }
174174
pat_box(inner) { v.visit_pat(inner, e, v); }
175+
pat_uniq(inner) { v.visit_pat(inner, e, v); }
175176
_ { }
176177
}
177178
}

src/test/run-pass/alt-implicit-copy-unique.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// xfail-test
21
fn main() {
32
let x = ~{mutable a: ~10, b: ~20};
43
alt x {

src/test/run-pass/unique-pat-2.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-test
2-
31
type foo = {a: int, b: uint};
42
tag bar { u(~foo); w(int); }
53

0 commit comments

Comments
 (0)