mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Only parse safe
as contextual kw in extern blocks
I don't like the party of `bool`s that is becoming, but two isn't worth a refactoring yet IMO.
This commit is contained in:
parent
cd206f5c9b
commit
3a8dc27e72
7 changed files with 47 additions and 8 deletions
|
@ -66,7 +66,7 @@ pub(super) fn stmt(p: &mut Parser<'_>, semicolon: Semicolon) {
|
|||
|
||||
// test block_items
|
||||
// fn a() { fn b() {} }
|
||||
let m = match items::opt_item(p, m) {
|
||||
let m = match items::opt_item(p, m, false) {
|
||||
Ok(()) => return,
|
||||
Err(m) => m,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue