Skip to content

Commit 009a2fd

Browse files
committed
Fix a test-predicated use of the visit.rs api.
1 parent 58b4fe6 commit 009a2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ mod test {
890890
let pat = string_to_pat(@~"(a,Foo{x:c @ (b,9),y:Bar(4,d)})");
891891
let pat_idents = new_name_finder();
892892
let idents = @mut ~[];
893-
((*pat_idents).visit_pat)(pat,idents, mk_vt(pat_idents));
893+
((*pat_idents).visit_pat)(pat, (idents, mk_vt(pat_idents)));
894894
assert_eq!(idents,@mut strs_to_idents(~["a","c","b","d"]));
895895
}
896896
}

0 commit comments

Comments
 (0)