Skip to content

Commit c6e4cad

Browse files
bors[bot]ice1000
andauthored
Merge #2471
2471: Add `ModuleItemsOwner` to `Block` r=matklad a=ice1000 As title Co-authored-by: ice1000 <[email protected]>
2 parents 82fd86a + 3794820 commit c6e4cad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/ra_syntax/src/ast/generated.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ impl AstNode for Block {
312312
}
313313
}
314314
impl ast::AttrsOwner for Block {}
315+
impl ast::ModuleItemOwner for Block {}
315316
impl Block {
316317
pub fn statements(&self) -> AstChildren<Stmt> {
317318
AstChildren::new(&self.syntax)

crates/ra_syntax/src/grammar.ron

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ Grammar(
653653
],
654654
traits: [
655655
"AttrsOwner",
656+
"ModuleItemOwner",
656657
]
657658
),
658659
"ParamList": (
@@ -664,14 +665,14 @@ Grammar(
664665
"SelfParam": (
665666
traits: [
666667
"TypeAscriptionOwner",
667-
"AttrsOwner",
668+
"AttrsOwner",
668669
]
669670
),
670671
"Param": (
671672
options: [ "Pat" ],
672673
traits: [
673674
"TypeAscriptionOwner",
674-
"AttrsOwner",
675+
"AttrsOwner",
675676
]
676677
),
677678
"UseItem": (

0 commit comments

Comments
 (0)