diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 9e45df8d1118..257cae5f0cb4 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 }