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

This is a subtle rule that no longer seems to be required.
This commit is contained in:
Brian Anderson
2012-07-03 16:06:09 -07:00
parent 3f59a4bc64
commit 0f5eaef5fb
21 changed files with 32 additions and 35 deletions

View File

@@ -243,12 +243,7 @@ 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]