]> git.lizzy.rs Git - rust.git/commitdiff
Add missing arm, so pretty-printing the statement 'copy 1;' does not die.
authorJesse Ruderman <jruderman@gmail.com>
Sat, 10 Sep 2011 04:27:07 +0000 (21:27 -0700)
committerJesse Ruderman <jruderman@gmail.com>
Sat, 10 Sep 2011 04:27:07 +0000 (21:27 -0700)
src/comp/syntax/parse/parser.rs

index 9e45df8d11182138f8a222660fc70e4173c90f08..257cae5f0cb49d10dded187ef1bc93c51ab789ef 100644 (file)
@@ -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 }