Auto merge of #29215 - fhahn:issue-28157-bad-semicolon, r=alexcrichton

PR for #28157. At the moment, `rustc` emits a warning when a bare semicolon is encountered (could also be a fail, but I think this is a backwards incompatible change).

Also I am not sure where the best place for a test for that warning would be. Seems run-pass tests do not check warnings.
This commit is contained in:
bors 2015-10-24 18:37:09 +00:00
commit 8d86d1a4e1
8 changed files with 10 additions and 10 deletions

View file

@ -436,7 +436,7 @@ meta_seq : meta_item [ ',' meta_seq ] ? ;
## Statements
```antlr
stmt : decl_stmt | expr_stmt ;
stmt : decl_stmt | expr_stmt | ';' ;
```
### Declaration statements