diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-31 19:29:21 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-31 19:29:21 +0100 |
commit | 215b9b9cccd66c9e9413e7581931371daa0c94e5 (patch) | |
tree | 342258c6744a6ec8189b9910f2b3bb7efd73f06b /xtask | |
parent | 38ab326aac70484cb951fe9389d788d525d41550 (diff) | |
parent | af53d5f4b081ad50d8fe08fc1e107aa6025b2491 (diff) |
Merge #5632
5632: Cleanup impl gramamr r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index e6231ece2..4602ff1d7 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -591,6 +591,8 @@ fn lower_rule(acc: &mut Vec<Field>, grammar: &Grammar, label: Option<&String>, r | |||
591 | | "index" | 591 | | "index" |
592 | | "base" | 592 | | "base" |
593 | | "value" | 593 | | "value" |
594 | | "target_type" | ||
595 | | "target_trait" | ||
594 | ); | 596 | ); |
595 | if manually_implemented { | 597 | if manually_implemented { |
596 | return; | 598 | return; |
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 7685f4f06..25d6f7a20 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -194,12 +194,11 @@ AssocItem = | |||
194 | | TypeAlias | 194 | | TypeAlias |
195 | 195 | ||
196 | Impl = | 196 | Impl = |
197 | Attr* Visibility? | 197 | Attr* Visibility? |
198 | 'default'? 'unsafe'? 'impl' 'const'? GenericParamList? ( | 198 | 'default'? 'unsafe'? 'impl' 'const'? GenericParamList? |
199 | Type | 199 | ('!'? target_trait:Type 'for')? target_type:Type |
200 | | '!'? Type 'for' Type | 200 | WhereClause? |
201 | ) WhereClause? | 201 | AssocItemList |
202 | AssocItemList | ||
203 | 202 | ||
204 | ExternBlock = | 203 | ExternBlock = |
205 | Attr* Abi ExternItemList | 204 | Attr* Abi ExternItemList |