cl-parser: Fix visability qualifier coming before attributes while parsing Item

This commit is contained in:
John 2024-04-14 23:13:17 -05:00
parent f958bbcb79
commit 0fab11c11b

View File

@ -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()),
}) })