This commit is contained in:
Aleksey Kladov
2018-08-24 00:16:29 +03:00
parent f47f58ffe5
commit dd64a155e9
3 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ pub(super) enum MaybeItem {
pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem {
attributes::outer_attributes(p);
visibility(p);
opt_visibility(p);
if let Some(kind) = items_without_modifiers(p) {
return MaybeItem::Item(kind);
}