aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen/rust.ungram
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/codegen/rust.ungram')
-rw-r--r--xtask/src/codegen/rust.ungram10
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
55ParamList = 55ParamList =
56 '('( 56 '('(
57 (Param (',' Param)* ','?)? 57 SelfParam
58 | SelfParam ','? 58 | (SelfParam ',')? (Param (',' Param)* ','?)?
59 | SelfParam ',' (Param (',' Param)* ','?)
60 )')' 59 )')'
61 60
62SelfParam = 61SelfParam =
@@ -182,10 +181,7 @@ Visibility =
182 ')')? 181 ')')?
183 182
184Attr = 183Attr =
185 '#' '!'? '[' Path ('=' input:AttrInput)? ']' 184 '#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
186
187AttrInput =
188 Literal | TokenTree
189 185
190ParenType = 186ParenType =
191 '(' TypeRef ')' 187 '(' TypeRef ')'