Skip to content

Commit b37ccfc

Browse files
committed
Remove unused keyword from visibility recovery
1 parent 00a0125 commit b37ccfc

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)