From b37ccfce44f55deeeec46bf3f18c464af4b9afe6 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Thu, 7 Mar 2024 14:54:57 +0000 Subject: [PATCH] Remove unused keyword from visibility recovery --- crates/parser/src/grammar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs index 34715628f1..456fd7ea2d 100644 --- a/crates/parser/src/grammar.rs +++ b/crates/parser/src/grammar.rs @@ -244,7 +244,7 @@ impl BlockLike { } } -const VISIBILITY_FIRST: TokenSet = TokenSet::new(&[T![pub], T![crate]]); +const VISIBILITY_FIRST: TokenSet = TokenSet::new(&[T![pub]]); fn opt_visibility(p: &mut Parser<'_>, in_tuple_field: bool) -> bool { if !p.at(T![pub]) {