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> {
let start = self.loc();
Ok(Item {
vis: self.visibility()?,
attrs: self.attributes()?,
vis: self.visibility()?,
kind: self.itemkind()?,
extents: Span(start, self.loc()),
})