minor: parser cleanup

This commit is contained in:
Aleksey Kladov 2021-09-18 00:14:20 +03:00
parent c72a30af63
commit ec2043a082
2 changed files with 20 additions and 21 deletions

View file

@ -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) {