aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
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