diff options
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 1 | ||||
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 11 |
3 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 231a0f727..01aefb60d 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -267,7 +267,6 @@ impl Impl { | |||
267 | pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) } | 267 | pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) } |
268 | pub fn impl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![impl]) } | 268 | pub fn impl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![impl]) } |
269 | pub fn const_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![const]) } | 269 | pub fn const_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![const]) } |
270 | pub fn ty(&self) -> Option<Type> { support::child(&self.syntax) } | ||
271 | pub fn excl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![!]) } | 270 | pub fn excl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![!]) } |
272 | pub fn for_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![for]) } | 271 | pub fn for_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![for]) } |
273 | pub fn assoc_item_list(&self) -> Option<AssocItemList> { support::child(&self.syntax) } | 272 | pub fn assoc_item_list(&self) -> Option<AssocItemList> { support::child(&self.syntax) } |
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 |