diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 18:10:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 18:10:22 +0100 |
commit | 71a4d325620ede42e8e6fad55ab95430eb47e1fd (patch) | |
tree | 214af35ab87aa34b6d16d72560ab39156e9b5631 /xtask/src | |
parent | ceca94536c7346287e533cd93467c7dc5bf1ed52 (diff) |
Minor
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index b773eaf8b..74fe65633 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -181,6 +181,12 @@ Visibility = | |||
181 | | 'in' Path | 181 | | 'in' Path |
182 | ')')? | 182 | ')')? |
183 | 183 | ||
184 | Attr = | ||
185 | '#' '!'? '[' Path ('=' input:AttrInput)? ']' | ||
186 | |||
187 | AttrInput = | ||
188 | Literal | TokenTree | ||
189 | |||
184 | ParenType = | 190 | ParenType = |
185 | '(' TypeRef ')' | 191 | '(' TypeRef ')' |
186 | 192 | ||
@@ -421,9 +427,6 @@ MacroStmts = | |||
421 | statements:Stmt* | 427 | statements:Stmt* |
422 | Expr? | 428 | Expr? |
423 | 429 | ||
424 | Attr = | ||
425 | '#' '!'? '[' Path ('=' input:AttrInput)? ']' | ||
426 | |||
427 | TypeBound = | 430 | TypeBound = |
428 | 'lifetime' | 'const'? TypeRef | 431 | 'lifetime' | 'const'? TypeRef |
429 | 432 | ||
@@ -493,10 +496,6 @@ TypeRef = | |||
493 | | ImplTraitType | 496 | | ImplTraitType |
494 | | DynTraitType | 497 | | DynTraitType |
495 | 498 | ||
496 | AttrInput = | ||
497 | Literal | ||
498 | | TokenTree | ||
499 | |||
500 | Stmt = | 499 | Stmt = |
501 | LetStmt | 500 | LetStmt |
502 | | ExprStmt | 501 | | ExprStmt |