mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
syntax: pretty print bind_by_value patterns as "copy", r=burningtree.
This commit is contained in:
parent
b4401d12a7
commit
5bdbfa41e6
@ -1555,8 +1555,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_value => {
|
||||
word_nbsp(s, ~"copy");
|
||||
}
|
||||
ast::bind_by_implicit_ref => {}
|
||||
}
|
||||
print_path(s, path, true);
|
||||
match sub {
|
||||
|
Loading…
Reference in New Issue
Block a user