mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
minor: simplify
This commit is contained in:
parent
366d3d7544
commit
4d2956e775
1 changed files with 1 additions and 7 deletions
|
@ -167,13 +167,7 @@ fn opt_visibility(p: &mut Parser) -> bool {
|
|||
// struct B(pub (crate::A,));
|
||||
T![crate] | T![self] | T![super] | T![ident] if p.nth(2) != T![:] => {
|
||||
p.bump(T!['(']);
|
||||
let path_m = p.start();
|
||||
let path_segment_m = p.start();
|
||||
let name_ref_m = p.start();
|
||||
p.bump_any();
|
||||
name_ref_m.complete(p, NAME_REF);
|
||||
path_segment_m.complete(p, PATH_SEGMENT);
|
||||
path_m.complete(p, PATH);
|
||||
paths::use_path(p);
|
||||
p.expect(T![')']);
|
||||
}
|
||||
// test crate_visibility_in
|
||||
|
|
Loading…
Reference in a new issue