aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items/structs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/structs.rs')
-rw-r--r--crates/libsyntax2/src/grammar/items/structs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/items/structs.rs b/crates/libsyntax2/src/grammar/items/structs.rs
index 41bd2a4e0..b3ed94fe3 100644
--- a/crates/libsyntax2/src/grammar/items/structs.rs
+++ b/crates/libsyntax2/src/grammar/items/structs.rs
@@ -91,7 +91,7 @@ fn named_fields(p: &mut Parser) {
91 // pub uri: Uri, 91 // pub uri: Uri,
92 // } 92 // }
93 attributes::outer_attributes(p); 93 attributes::outer_attributes(p);
94 visibility(p); 94 opt_visibility(p);
95 if p.at(IDENT) { 95 if p.at(IDENT) {
96 name(p); 96 name(p);
97 p.expect(COLON); 97 p.expect(COLON);
@@ -110,7 +110,7 @@ fn pos_fields(p: &mut Parser) {
110 } 110 }
111 while !p.at(R_PAREN) && !p.at(EOF) { 111 while !p.at(R_PAREN) && !p.at(EOF) {
112 let pos_field = p.start(); 112 let pos_field = p.start();
113 visibility(p); 113 opt_visibility(p);
114 types::type_(p); 114 types::type_(p);
115 pos_field.complete(p, POS_FIELD); 115 pos_field.complete(p, POS_FIELD);
116 116