diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2013-10-20 08:31:23 -0400 |
|---|---|---|
| committer | Luqman Aden <laden@csclub.uwaterloo.ca> | 2013-10-25 01:21:07 -0400 |
| commit | 12308db3d23fe59b7ccfed6c535896ac6fdb5abe (patch) | |
| tree | 0ee8744bc3fa89748369deb97429df97a83ef056 /src/libsyntax/parse/mod.rs | |
| parent | c16a95c587bb5ff5f06894657a1d7aafc69a2084 (diff) | |
| download | rust-12308db3d23fe59b7ccfed6c535896ac6fdb5abe.tar.gz rust-12308db3d23fe59b7ccfed6c535896ac6fdb5abe.zip | |
libsyntax/librustc: Allow mut qualifier in patterns.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index fad9eab7542..0de571978a0 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -639,7 +639,7 @@ mod test { assert_eq!(parser.parse_pat(), @ast::Pat{id: ast::DUMMY_NODE_ID, node: ast::PatIdent( - ast::BindInfer, + ast::BindByValue(ast::MutImmutable), ast::Path { span:sp(0,1), global:false, @@ -666,7 +666,6 @@ mod test { id: ast::DUMMY_NODE_ID, node: ast::item_fn(ast::fn_decl{ inputs: ~[ast::arg{ - is_mutbl: false, ty: ast::Ty{id: ast::DUMMY_NODE_ID, node: ast::ty_path(ast::Path{ span:sp(10,13), @@ -685,7 +684,7 @@ mod test { pat: @ast::Pat { id: ast::DUMMY_NODE_ID, node: ast::PatIdent( - ast::BindInfer, + ast::BindByValue(ast::MutImmutable), ast::Path { span:sp(6,7), global:false, |
