Skip to content

Commit ce5fd30

Browse files
committed
Fix parser test
1 parent 21951e5 commit ce5fd30

File tree

4 files changed

+3
-26
lines changed

4 files changed

+3
-26
lines changed

src/libsyntax/parse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ mod test {
485485
486486
#[test] fn parse_ident_pat () {
487487
let parser = string_to_parser(@~"b");
488-
assert_eq!(parser.parse_pat(false),
488+
assert_eq!(parser.parse_pat(),
489489
@ast::pat{id:1, // fixme
490490
node: ast::pat_ident(ast::bind_infer,
491491
@ast::Path{

src/test/compile-fail/borrowck-pat-by-value-binding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn match_const_opt_by_imm_ref(v: &const Option<int>) {
3636

3737
fn match_const_opt_by_value(v: &const Option<int>) {
3838
match *v {
39-
Some(copy i) => process(i),
39+
Some(i) => process(i),
4040
None => ()
4141
}
4242
}

src/test/compile-fail/noncopyable-match-pattern.rs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/test/compile-fail/resolve-inconsistent-binding-mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ enum opts {
1414

1515
fn matcher1(x: opts) {
1616
match x {
17-
a(ref i) | b(copy i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
17+
a(ref i) | b(i) => {} //~ ERROR variable `i` is bound with different mode in pattern #2 than in pattern #1
1818
c(_) => {}
1919
}
2020
}

0 commit comments

Comments
 (0)