Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar/items/adt.rs')
| -rw-r--r-- | crates/parser/src/grammar/items/adt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/parser/src/grammar/items/adt.rs b/crates/parser/src/grammar/items/adt.rs index 42ebecc6d6..c5bd5b14ba 100644 --- a/crates/parser/src/grammar/items/adt.rs +++ b/crates/parser/src/grammar/items/adt.rs @@ -128,7 +128,7 @@ pub(crate) fn record_field_list(p: &mut Parser) { // test record_field_attrs // struct S { #[attr] f: f32 } attributes::outer_attrs(p); - opt_visibility(p); + opt_visibility(p, false); if p.at(IDENT) { name(p); p.expect(T![:]); @@ -150,7 +150,7 @@ fn tuple_field_list(p: &mut Parser) { // test tuple_field_attrs // struct S (#[attr] f32); attributes::outer_attrs(p); - opt_visibility(p); + opt_visibility(p, true); if !p.at_ts(types::TYPE_FIRST) { p.error("expected a type"); m.complete(p, ERROR); |