From f070e22360e8e7edb65448908a5bff5e2060a7ff Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 6 Dec 2012 19:45:26 -0800 Subject: [PATCH] Print copy patterns correctly --- src/libsyntax/print/pprust.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 14ef7c56b76d..5b77628889e3 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1554,8 +1554,10 @@ fn print_pat(s: ps, &&pat: @ast::pat) { ast::bind_by_move => { word_nbsp(s, ~"move"); } - ast::bind_by_implicit_ref | - ast::bind_by_value => {} + ast::bind_by_implicit_ref => {} + ast::bind_by_value => { + word_nbsp(s, ~"copy"); + } } print_path(s, path, true); match sub {