mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
minor: cleanup
This commit is contained in:
parent
4badd2faf8
commit
366d3d7544
1 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ fn opt_visibility(p: &mut Parser) -> bool {
|
|||
// struct B(pub (super::A));
|
||||
// struct B(pub (crate::A,));
|
||||
T![crate] | T![self] | T![super] | T![ident] if p.nth(2) != T![:] => {
|
||||
p.bump_any();
|
||||
p.bump(T!['(']);
|
||||
let path_m = p.start();
|
||||
let path_segment_m = p.start();
|
||||
let name_ref_m = p.start();
|
||||
|
@ -180,8 +180,8 @@ fn opt_visibility(p: &mut Parser) -> bool {
|
|||
// pub(in super::A) struct S;
|
||||
// pub(in crate) struct S;
|
||||
T![in] => {
|
||||
p.bump_any();
|
||||
p.bump_any();
|
||||
p.bump(T!['(']);
|
||||
p.bump(T![in]);
|
||||
paths::use_path(p);
|
||||
p.expect(T![')']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue