Revert to correct recovery behavior

This commit is contained in:
Esteban Küber
2017-11-23 13:16:19 -08:00
parent 4e2d1b9466
commit 0e93b75d27
10 changed files with 10 additions and 9 deletions

View File

@@ -4273,6 +4273,7 @@ impl<'a> Parser<'a> {
Err(mut err) => {
err.emit();
self.recover_stmt_(SemiColonMode::Ignore, BlockMode::Break);
self.eat(&token::CloseDelim(token::Brace));
break;
}
Ok(stmt) => stmt,