diff options
Diffstat (limited to 'src/libsyntax/ext/build.rs')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index d4da5a2034e..6d44a412742 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -203,7 +203,7 @@ pub fn mk_local(cx: ext_ctxt, sp: span, mutbl: bool, let pat = @ast::pat { id: cx.next_id(), node: ast::pat_ident( - ast::bind_by_value, + ast::bind_by_copy, mk_raw_path(sp, ~[ident]), None), span: sp, @@ -279,9 +279,8 @@ pub fn mk_pat(cx: ext_ctxt, span: span, +pat: ast::pat_) -> @ast::pat { } pub fn mk_pat_ident(cx: ext_ctxt, span: span, - ident: ast::ident) - -> @ast::pat { - mk_pat_ident_with_binding_mode(cx, span, ident, ast::bind_by_value) + ident: ast::ident) -> @ast::pat { + mk_pat_ident_with_binding_mode(cx, span, ident, ast::bind_by_copy) } pub fn mk_pat_ident_with_binding_mode(cx: ext_ctxt, span: span, |
