diff options
| author | bors <bors@rust-lang.org> | 2024-03-08 12:08:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-08 12:08:06 +0000 |
| commit | 1487bc2af6d3f6176af0b06a83be1b7e8570a76b (patch) | |
| tree | 97c9b2e2802f360dcbe3a9501b825053ed93048c | |
| parent | 00a012537219b351a49b6230e2a5e4661223d669 (diff) | |
| parent | b37ccfce44f55deeeec46bf3f18c464af4b9afe6 (diff) | |
| download | rust-1487bc2af6d3f6176af0b06a83be1b7e8570a76b.tar.gz rust-1487bc2af6d3f6176af0b06a83be1b7e8570a76b.zip | |
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 34715628f18..456fd7ea2d6 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]) { |
