aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-31 19:29:21 +0100
committerGitHub <[email protected]>2020-07-31 19:29:21 +0100
commit215b9b9cccd66c9e9413e7581931371daa0c94e5 (patch)
tree342258c6744a6ec8189b9910f2b3bb7efd73f06b /xtask/src/codegen
parent38ab326aac70484cb951fe9389d788d525d41550 (diff)
parentaf53d5f4b081ad50d8fe08fc1e107aa6025b2491 (diff)
Merge #5632
5632: Cleanup impl gramamr r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/gen_syntax.rs2
-rw-r--r--xtask/src/codegen/rust.ungram11
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
196Impl = 196Impl =
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
204ExternBlock = 203ExternBlock =
205 Attr* Abi ExternItemList 204 Attr* Abi ExternItemList