diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 17:28:28 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 17:28:28 +0100 |
commit | c5798c4d75aa807aec47208a49101bdec3affcca (patch) | |
tree | 1af0efdcee857e1ba91e76f4cc7fd7c043916ebb /xtask/src/codegen | |
parent | c83467796b6c7365ea4f41900d74444384a9e618 (diff) |
Finalize impl Grammar
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index b30658397..cda0e8fbb 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -9,7 +9,7 @@ Item = | |||
9 | | ExternBlock | 9 | | ExternBlock |
10 | | ExternCrate | 10 | | ExternCrate |
11 | | Fn | 11 | | Fn |
12 | | ImplDef | 12 | | Impl |
13 | | MacroCall | 13 | | MacroCall |
14 | | Module | 14 | | Module |
15 | | Static | 15 | | Static |
@@ -131,9 +131,12 @@ Trait = | |||
131 | AssocItemList = | 131 | AssocItemList = |
132 | '{' AssocItem* '}' | 132 | '{' AssocItem* '}' |
133 | 133 | ||
134 | ImplDef = | 134 | Impl = |
135 | Attr* Visibility? 'const'? 'default'? 'unsafe'? 'impl' GenericParamList? '!'? 'for' | 135 | Attr* Visibility? |
136 | WhereClause? | 136 | 'default'? 'unsafe'? 'impl' 'const'? GenericParamList? ( |
137 | TypeRef | ||
138 | | '!'? TypeRef 'for' TypeRef | ||
139 | ) WhereClause? | ||
137 | AssocItemList | 140 | AssocItemList |
138 | 141 | ||
139 | ParenType = | 142 | ParenType = |