internal: parser cleanups

This commit is contained in:
Aleksey Kladov 2021-09-17 21:40:28 +03:00
parent 00b19846c9
commit f632b5e481
3 changed files with 38 additions and 39 deletions

View file

@ -71,7 +71,7 @@ pub(super) fn stmt(p: &mut Parser, with_semi: StmtWithSemi, prefer_expr: bool) {
// test block_items
// fn a() { fn b() {} }
let m = match items::maybe_item(p, m) {
let m = match items::opt_item(p, m) {
Ok(()) => return,
Err(m) => m,
};