mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Use Marker argument for item parsers
- Fix pub_expr - Fix incorrect parsing of crate::path
This commit is contained in:
parent
3d9c2beb8e
commit
76075c7410
14 changed files with 149 additions and 81 deletions
|
@ -67,8 +67,6 @@ pub(crate) fn expr_block_contents(p: &mut Parser) {
|
|||
Err(m) => m,
|
||||
};
|
||||
|
||||
// test pub_expr
|
||||
// fn foo() { pub 92; } //FIXME
|
||||
if has_attrs {
|
||||
m.abandon(p);
|
||||
p.error("expected a let statement or an item after attributes in block");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue