diff options
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 1 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 2 |
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 { | |||
248 | pub struct ItemList { | 248 | pub struct ItemList { |
249 | pub(crate) syntax: SyntaxNode, | 249 | pub(crate) syntax: SyntaxNode, |
250 | } | 250 | } |
251 | impl ast::AttrsOwner for ItemList {} | ||
251 | impl ast::ModuleItemOwner for ItemList {} | 252 | impl ast::ModuleItemOwner for ItemList {} |
252 | impl ItemList { | 253 | impl 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 | ||
26 | ItemList = | 26 | ItemList = |
27 | '{' Item* '}' | 27 | '{' Attr* Item* '}' |
28 | 28 | ||
29 | FnDef = | 29 | FnDef = |
30 | Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? | 30 | Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? |