From 5bdbfa41e6a2ce519e6ef2473aa812589bb475ab Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 7 Dec 2012 12:29:46 -0800 Subject: [PATCH] syntax: pretty print bind_by_value patterns as "copy", r=burningtree. --- 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 c0a01cc23faf..f3a9f7b50606 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1555,8 +1555,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_value => { + word_nbsp(s, ~"copy"); + } + ast::bind_by_implicit_ref => {} } print_path(s, path, true); match sub {