diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-12-07 12:29:46 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-12-07 12:29:46 -0800 |
| commit | 5bdbfa41e6a2ce519e6ef2473aa812589bb475ab (patch) | |
| tree | 08695318c0598e2d95fdf65ad892c521e53df5c5 | |
| parent | b4401d12a7fe4af43698e8360cffce3f9cb4bc62 (diff) | |
| download | rust-5bdbfa41e6a2ce519e6ef2473aa812589bb475ab.tar.gz rust-5bdbfa41e6a2ce519e6ef2473aa812589bb475ab.zip | |
syntax: pretty print bind_by_value patterns as "copy", r=burningtree.
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index c0a01cc23fa..f3a9f7b5060 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 { |
