Skip to content

Commit 1487bc2

Browse files
committed
Auto merge of #16785 - pksunkara:remove-crate-visibility-recovery, r=lnicola
internal: Remove unused keyword from visibility recovery We removed support `crate` visibility keyword, but forgot to remove it from the recovery token list.
2 parents 00a0125 + b37ccfc commit 1487bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/parser/src/grammar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl BlockLike {
244244
}
245245
}
246246

247-
const VISIBILITY_FIRST: TokenSet = TokenSet::new(&[T![pub], T![crate]]);
247+
const VISIBILITY_FIRST: TokenSet = TokenSet::new(&[T![pub]]);
248248

249249
fn opt_visibility(p: &mut Parser<'_>, in_tuple_field: bool) -> bool {
250250
if !p.at(T![pub]) {

0 commit comments

Comments
 (0)