aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs1
-rw-r--r--xtask/src/codegen/rust.ungram2
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 7ccb7ea7f..fbf3b457a 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -248,6 +248,7 @@ impl Name {
248pub struct ItemList { 248pub struct ItemList {
249 pub(crate) syntax: SyntaxNode, 249 pub(crate) syntax: SyntaxNode,
250} 250}
251impl ast::AttrsOwner for ItemList {}
251impl ast::ModuleItemOwner for ItemList {} 252impl ast::ModuleItemOwner for ItemList {}
252impl ItemList { 253impl ItemList {
253 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['{']) } 254 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['{']) }
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index d0518cead..470ac8c8f 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -24,7 +24,7 @@ Module =
24 (ItemList | ';') 24 (ItemList | ';')
25 25
26ItemList = 26ItemList =
27 '{' Item* '}' 27 '{' Attr* Item* '}'
28 28
29FnDef = 29FnDef =
30 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? 30 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList?