diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 01508ed882..df9b5cc2ce 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -15,9 +15,7 @@ pub struct SourceFile { impl ast::ModuleItemOwner for SourceFile {} impl ast::AttrsOwner for SourceFile {} impl ast::DocCommentsOwner for SourceFile {} -impl SourceFile { - pub fn modules(&self) -> AstChildren { support::children(&self.syntax) } -} +impl SourceFile {} /// Function definition either with body or not. /// Includes all of its attributes and doc comments. /// diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 8d1ffc5b51..7f0db31bdc 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -322,7 +322,6 @@ pub(crate) fn rust_ast() -> AstSrc { /// /// [Reference](https://doc.rust-lang.org/reference/crates-and-source-files.html) struct SourceFile: ModuleItemOwner, AttrsOwner, DocCommentsOwner { - modules: [Module], } /// Function definition either with body or not.