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 7ccb7ea7fac..fbf3b457a9e 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 { pub struct ItemList { pub(crate) syntax: SyntaxNode, } +impl ast::AttrsOwner for ItemList {} impl ast::ModuleItemOwner for ItemList {} impl ItemList { 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 d0518ceadf3..470ac8c8ff2 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -24,7 +24,7 @@ Module = (ItemList | ';') ItemList = - '{' Item* '}' + '{' Attr* Item* '}' FnDef = Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? |
