Skip to content

Commit f070e22

Browse files
committed
Print copy patterns correctly
1 parent 7a365e4 commit f070e22

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
@@ -1554,8 +1554,10 @@ fn print_pat(s: ps, &&pat: @ast::pat) {
15541554
ast::bind_by_move => {
15551555
word_nbsp(s, ~"move");
15561556
}
1557-
ast::bind_by_implicit_ref |
1558-
ast::bind_by_value => {}
1557+
ast::bind_by_implicit_ref => {}
1558+
ast::bind_by_value => {
1559+
word_nbsp(s, ~"copy");
1560+
}
15591561
}
15601562
print_path(s, path, true);
15611563
match sub {

0 commit comments

Comments
 (0)