libsyntax/librustc: Allow mut qualifier in patterns.

This commit is contained in:
Luqman Aden
2013-10-20 08:31:23 -04:00
parent c16a95c587
commit 12308db3d2
20 changed files with 111 additions and 148 deletions

View File

@@ -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 }
}