1
Fork 0

Remove copy bindings from patterns.

This commit is contained in:
Niko Matsakis 2013-05-29 19:59:33 -04:00
parent 5209709e46
commit 7a1a40890d
34 changed files with 176 additions and 201 deletions

View file

@ -560,7 +560,7 @@ impl AstBuilder for @ExtCtxt {
self.pat(span, ast::pat_lit(expr))
}
fn pat_ident(&self, span: span, ident: ast::ident) -> @ast::pat {
self.pat_ident_binding_mode(span, ident, ast::bind_by_copy)
self.pat_ident_binding_mode(span, ident, ast::bind_infer)
}
fn pat_ident_binding_mode(&self,