Revert "Remove rule requiring non-nil block-style statements to be semi-terminated"

This reverts commit 0f5eaef5fb.
This commit is contained in:
Brian Anderson
2012-07-03 17:30:25 -07:00
parent e000d1db0a
commit ae6ea068a1
21 changed files with 35 additions and 32 deletions

View File

@@ -27,6 +27,9 @@ fn stmt_ends_with_semi(stmt: ast::stmt) -> bool {
ast::stmt_expr(e, _) {
ret expr_requires_semi_to_be_stmt(e);
}
ast::stmt_semi(e, _) {
ret false;
}
}
}