diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index c06076e3d7..9dd6bd3eac 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -312,6 +312,7 @@ impl AstNode for Block { } } impl ast::AttrsOwner for Block {} +impl ast::ModuleItemOwner for Block {} impl Block { pub fn statements(&self) -> AstChildren { AstChildren::new(&self.syntax) diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index d1be40abeb..9ffa9095bc 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -653,6 +653,7 @@ Grammar( ], traits: [ "AttrsOwner", + "ModuleItemOwner", ] ), "ParamList": ( @@ -664,14 +665,14 @@ Grammar( "SelfParam": ( traits: [ "TypeAscriptionOwner", - "AttrsOwner", + "AttrsOwner", ] ), "Param": ( options: [ "Pat" ], traits: [ "TypeAscriptionOwner", - "AttrsOwner", + "AttrsOwner", ] ), "UseItem": (