Print copy patterns correctly

This commit is contained in:
Tim Chevalier 2012-12-06 19:45:26 -08:00
parent 7a365e4aa4
commit f070e22360

View file

@ -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 {