mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: parser cleanups
This commit is contained in:
parent
00b19846c9
commit
f632b5e481
3 changed files with 38 additions and 39 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue