diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-30 17:39:40 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-30 17:39:40 +0100 |
commit | af8132e610d1e649e67ab797e372d1efcf106c48 (patch) | |
tree | b08fbc93e85f25301ad84a05a3f859ed3edfeb17 /xtask/src | |
parent | 0f5805541be90a2789b0bc34c5d829042ac3b0ad (diff) | |
parent | 917c89c103597d09e95bdee273633f79123dd19e (diff) |
Merge #5607
5607: Finaize item grammar r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index cda0e8fbb..cdd3adf45 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -129,7 +129,13 @@ Trait = | |||
129 | AssocItemList | 129 | AssocItemList |
130 | 130 | ||
131 | AssocItemList = | 131 | AssocItemList = |
132 | '{' AssocItem* '}' | 132 | '{' Attr* AssocItem* '}' |
133 | |||
134 | AssocItem = | ||
135 | Fn | ||
136 | | TypeAlias | ||
137 | | Const | ||
138 | | MacroCall | ||
133 | 139 | ||
134 | Impl = | 140 | Impl = |
135 | Attr* Visibility? | 141 | Attr* Visibility? |
@@ -139,6 +145,15 @@ Impl = | |||
139 | ) WhereClause? | 145 | ) WhereClause? |
140 | AssocItemList | 146 | AssocItemList |
141 | 147 | ||
148 | ExternBlock = | ||
149 | Attr* Abi ExternItemList | ||
150 | |||
151 | ExternItemList = | ||
152 | '{' Attr* ExternItem* '}' | ||
153 | |||
154 | ExternItem = | ||
155 | Fn | Static | MacroCall | ||
156 | |||
142 | ParenType = | 157 | ParenType = |
143 | '(' TypeRef ')' | 158 | '(' TypeRef ')' |
144 | 159 | ||
@@ -449,12 +464,6 @@ LifetimeArg = | |||
449 | ConstArg = | 464 | ConstArg = |
450 | Literal | BlockExpr BlockExpr | 465 | Literal | BlockExpr BlockExpr |
451 | 466 | ||
452 | ExternBlock = | ||
453 | Attr* Abi ExternItemList | ||
454 | |||
455 | ExternItemList = | ||
456 | '{' extern_items:ExternItem* '}' | ||
457 | |||
458 | MetaItem = | 467 | MetaItem = |
459 | Path '=' AttrInput nested_meta_items:MetaItem* | 468 | Path '=' AttrInput nested_meta_items:MetaItem* |
460 | 469 | ||
@@ -478,15 +487,6 @@ TypeRef = | |||
478 | | ImplTraitType | 487 | | ImplTraitType |
479 | | DynTraitType | 488 | | DynTraitType |
480 | 489 | ||
481 | AssocItem = | ||
482 | Fn | ||
483 | | TypeAlias | ||
484 | | Const | ||
485 | | MacroCall | ||
486 | |||
487 | ExternItem = | ||
488 | Fn | Static | ||
489 | |||
490 | AttrInput = | 490 | AttrInput = |
491 | Literal | 491 | Literal |
492 | | TokenTree | 492 | | TokenTree |