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:
Chayim Refael Friedman 2024-10-30 19:28:33 +02:00
parent cd206f5c9b
commit 3a8dc27e72
7 changed files with 47 additions and 8 deletions

View file

@ -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,
};