mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
internal: move visibility to a prefix entry point
This commit is contained in:
parent
abc658aad0
commit
350d5dc152
4 changed files with 62 additions and 8 deletions
|
@ -86,10 +86,6 @@ pub(crate) mod entry_points {
|
|||
expressions::stmt(p, expressions::StmtWithSemi::Optional, false);
|
||||
}
|
||||
|
||||
pub(crate) fn visibility(p: &mut Parser) {
|
||||
let _ = opt_visibility(p, false);
|
||||
}
|
||||
|
||||
// Parse a meta item , which excluded [], e.g : #[ MetaItem ]
|
||||
pub(crate) fn meta_item(p: &mut Parser) {
|
||||
attributes::meta(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue