diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index a97cc80e9..8c4f953b0 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -54,9 +54,8 @@ Abi = | |||
54 | 54 | ||
55 | ParamList = | 55 | ParamList = |
56 | '('( | 56 | '('( |
57 | (Param (',' Param)* ','?)? | 57 | SelfParam |
58 | | SelfParam ','? | 58 | | (SelfParam ',')? (Param (',' Param)* ','?)? |
59 | | SelfParam ',' (Param (',' Param)* ','?) | ||
60 | )')' | 59 | )')' |
61 | 60 | ||
62 | SelfParam = | 61 | SelfParam = |
@@ -182,10 +181,7 @@ Visibility = | |||
182 | ')')? | 181 | ')')? |
183 | 182 | ||
184 | Attr = | 183 | Attr = |
185 | '#' '!'? '[' Path ('=' input:AttrInput)? ']' | 184 | '#' '!'? '[' Path ('=' Literal | TokenTree)? ']' |
186 | |||
187 | AttrInput = | ||
188 | Literal | TokenTree | ||
189 | 185 | ||
190 | ParenType = | 186 | ParenType = |
191 | '(' TypeRef ')' | 187 | '(' TypeRef ')' |