Use Marker argument for item parsers

- Fix pub_expr
- Fix incorrect parsing of crate::path
This commit is contained in:
pcpthm 2019-03-18 14:34:08 +09:00
parent 3d9c2beb8e
commit 76075c7410
14 changed files with 149 additions and 81 deletions

View file

@ -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");