We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081f35f commit 7d09e5eCopy full SHA for 7d09e5e
crates/ra_syntax/src/ast/generated/nodes.rs
@@ -248,6 +248,7 @@ impl Name {
248
pub struct ItemList {
249
pub(crate) syntax: SyntaxNode,
250
}
251
+impl ast::AttrsOwner for ItemList {}
252
impl ast::ModuleItemOwner for ItemList {}
253
impl ItemList {
254
pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T!['{']) }
xtask/src/codegen/rust.ungram
@@ -24,7 +24,7 @@ Module =
24
(ItemList | ';')
25
26
ItemList =
27
- '{' Item* '}'
+ '{' Attr* Item* '}'
28
29
FnDef =
30
Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList?
0 commit comments