Skip to content

Commit 5bdbfa4

Browse files
committed
syntax: pretty print bind_by_value patterns as "copy", r=burningtree.
1 parent b4401d1 commit 5bdbfa4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,8 +1555,10 @@ fn print_pat(s: ps, &&pat: @ast::pat) {
15551555
ast::bind_by_move => {
15561556
word_nbsp(s, ~"move");
15571557
}
1558-
ast::bind_by_implicit_ref |
1559-
ast::bind_by_value => {}
1558+
ast::bind_by_value => {
1559+
word_nbsp(s, ~"copy");
1560+
}
1561+
ast::bind_by_implicit_ref => {}
15601562
}
15611563
print_path(s, path, true);
15621564
match sub {

0 commit comments

Comments
 (0)