File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
crates/ra_syntax/src/ast/generated Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,6 @@ pub struct TupleField {
422422 pub ( crate ) syntax : SyntaxNode ,
423423}
424424impl ast:: AttrsOwner for TupleField { }
425- impl ast:: NameOwner for TupleField { }
426425impl ast:: VisibilityOwner for TupleField { }
427426impl TupleField {
428427 pub fn type_ref ( & self ) -> Option < TypeRef > { support:: child ( & self . syntax ) }
Original file line number Diff line number Diff line change @@ -83,22 +83,21 @@ StructDef =
8383 )
8484
8585RecordFieldList =
86- '{' fields:RecordField* '}'
86+ '{' fields:( RecordField (',' RecordField)* ','?)? '}'
8787
8888RecordField =
8989 Attr* Visibility? Name ':' ascribed_type:TypeRef
9090
9191TupleFieldList =
92- '(' fields:TupleField* ')'
92+ '(' fields:( TupleField (',' TupleField)* ','?)? ')'
9393
9494TupleField =
95- Attr* Visibility? Name TypeRef
95+ Attr* Visibility? TypeRef
9696
9797FieldList =
9898 RecordFieldList
9999| TupleFieldList
100100
101-
102101UnionDef =
103102 Attr* Visibility? 'union' Name GenericParamList? WhereClause?
104103 RecordFieldList
You can’t perform that action at this time.
0 commit comments