diff options
| author | Jesse Ruderman <jruderman@gmail.com> | 2011-09-09 21:27:07 -0700 |
|---|---|---|
| committer | Jesse Ruderman <jruderman@gmail.com> | 2011-09-09 21:27:07 -0700 |
| commit | 718205441618e1bdda7dd57a7f7ab9f3569a64aa (patch) | |
| tree | 4d936a6d4411dd176bf6366bd4bd22bb6d773afd /src/comp/syntax/parse | |
| parent | 8e001618192bbcbe34b8f539ab7d8fa87090700b (diff) | |
| download | rust-718205441618e1bdda7dd57a7f7ab9f3569a64aa.tar.gz rust-718205441618e1bdda7dd57a7f7ab9f3569a64aa.zip | |
Add missing arm, so pretty-printing the statement 'copy 1;' does not die.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 9e45df8d111..257cae5f0cb 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1613,6 +1613,7 @@ fn stmt_ends_with_semi(stmt: &ast::stmt) -> bool { ast::expr_alt(_, _) { false } ast::expr_fn(_) { false } ast::expr_block(_) { false } + ast::expr_copy(_) { true } ast::expr_move(_, _) { true } ast::expr_assign(_, _) { true } ast::expr_swap(_, _) { true } |
