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/ast_util.rs | |
| parent | c16a95c587bb5ff5f06894657a1d7aafc69a2084 (diff) | |
| download | rust-12308db3d23fe59b7ccfed6c535896ac6fdb5abe.tar.gz rust-12308db3d23fe59b7ccfed6c535896ac6fdb5abe.zip | |
libsyntax/librustc: Allow mut qualifier in patterns.
Diffstat (limited to 'src/libsyntax/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 456d344b838..3ec87dbdd26 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -234,7 +234,7 @@ pub fn ident_to_path(s: Span, identifier: Ident) -> Path { pub fn ident_to_pat(id: NodeId, s: Span, i: Ident) -> @Pat { @ast::Pat { id: id, - node: PatIdent(BindInfer, ident_to_path(s, i), None), + node: PatIdent(BindByValue(MutImmutable), ident_to_path(s, i), None), span: s } } |
