Unnamed repository; edit this file 'description' to name the repository.
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.
| -rw-r--r-- | crates/parser/src/grammar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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]) { |