cl-parser: Fix visability qualifier coming before attributes while parsing Item
This commit is contained in:
parent
f958bbcb79
commit
0fab11c11b
@ -186,8 +186,8 @@ impl<'t> Parser<'t> {
|
|||||||
pub fn item(&mut self) -> PResult<Item> {
|
pub fn item(&mut self) -> PResult<Item> {
|
||||||
let start = self.loc();
|
let start = self.loc();
|
||||||
Ok(Item {
|
Ok(Item {
|
||||||
vis: self.visibility()?,
|
|
||||||
attrs: self.attributes()?,
|
attrs: self.attributes()?,
|
||||||
|
vis: self.visibility()?,
|
||||||
kind: self.itemkind()?,
|
kind: self.itemkind()?,
|
||||||
extents: Span(start, self.loc()),
|
extents: Span(start, self.loc()),
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user