5569: Remove dead code r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-07-29 13:47:10 +00:00 committed by GitHub
commit 9110e3b67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -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<Module> { support::children(&self.syntax) }
}
impl SourceFile {}
/// Function definition either with body or not.
/// Includes all of its attributes and doc comments.
///

View file

@ -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.