mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
feat: parse unsafe record fields
This commit is contained in:
parent
d3aeddfb77
commit
452e2ca031
9 changed files with 39 additions and 9 deletions
|
|
@ -240,7 +240,7 @@ RecordFieldList =
|
|||
'{' fields:(RecordField (',' RecordField)* ','?)? '}'
|
||||
|
||||
RecordField =
|
||||
Attr* Visibility?
|
||||
Attr* Visibility? 'unsafe'?
|
||||
Name ':' Type ('=' Expr)?
|
||||
|
||||
TupleFieldList =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue