about summary refs log tree commit diff
path: root/src/libsyntax/print/pprust.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-12-06 19:45:26 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-12-06 21:53:25 -0800
commitf070e22360e8e7edb65448908a5bff5e2060a7ff (patch)
tree162cffeb664c74941ab7e94e3f5d07ee4d7a26b8 /src/libsyntax/print/pprust.rs
parent7a365e4aa4386ed692163517e3cf42eaed68b786 (diff)
downloadrust-f070e22360e8e7edb65448908a5bff5e2060a7ff.tar.gz
rust-f070e22360e8e7edb65448908a5bff5e2060a7ff.zip
Print copy patterns correctly
Diffstat (limited to 'src/libsyntax/print/pprust.rs')
-rw-r--r--src/libsyntax/print/pprust.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 14ef7c56b76..5b77628889e 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 {