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

@ -243,7 +243,12 @@ type stmt = spanned<stmt_>;
#[auto_serialize]
enum stmt_ {
stmt_decl(@decl, node_id),
// expr without trailing semi-colon (must have unit type):
stmt_expr(@expr, node_id),
// expr with trailing semi-colon (may have any type):
stmt_semi(@expr, node_id),
}
#[auto_serialize]