Skip to content

Commit 9110e3b

Browse files
bors[bot]matklad
andauthored
Merge #5569
5569: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents b9c2107 + 9fb1624 commit 9110e3b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

crates/ra_syntax/src/ast/generated/nodes.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ pub struct SourceFile {
1515
impl ast::ModuleItemOwner for SourceFile {}
1616
impl ast::AttrsOwner for SourceFile {}
1717
impl ast::DocCommentsOwner for SourceFile {}
18-
impl SourceFile {
19-
pub fn modules(&self) -> AstChildren<Module> { support::children(&self.syntax) }
20-
}
18+
impl SourceFile {}
2119
/// Function definition either with body or not.
2220
/// Includes all of its attributes and doc comments.
2321
///

xtask/src/ast_src.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ pub(crate) fn rust_ast() -> AstSrc {
322322
///
323323
/// [Reference](https://doc.rust-lang.org/reference/crates-and-source-files.html)
324324
struct SourceFile: ModuleItemOwner, AttrsOwner, DocCommentsOwner {
325-
modules: [Module],
326325
}
327326

328327
/// Function definition either with body or not.

0 commit comments

Comments
 (0)