Print copy patterns correctly
This commit is contained in:
parent
7a365e4aa4
commit
f070e22360
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue