Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar.rs')
| -rw-r--r-- | crates/parser/src/grammar.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs index 23f0cc0153..58e182d68c 100644 --- a/crates/parser/src/grammar.rs +++ b/crates/parser/src/grammar.rs @@ -183,6 +183,7 @@ fn opt_visibility(p: &mut Parser) -> bool { } } m.complete(p, VISIBILITY); + true } // test crate_keyword_vis // crate fn main() { } @@ -197,10 +198,10 @@ fn opt_visibility(p: &mut Parser) -> bool { let m = p.start(); p.bump(T![crate]); m.complete(p, VISIBILITY); + true } - _ => return false, + _ => false, } - true } fn opt_rename(p: &mut Parser) { |