diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-12-06 19:45:26 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-12-06 21:53:25 -0800 |
| commit | f070e22360e8e7edb65448908a5bff5e2060a7ff (patch) | |
| tree | 162cffeb664c74941ab7e94e3f5d07ee4d7a26b8 /src/libsyntax/print/pprust.rs | |
| parent | 7a365e4aa4386ed692163517e3cf42eaed68b786 (diff) | |
| download | rust-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.rs | 6 |
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 { |
