Remove dead code
This commit is contained in:
@@ -15,9 +15,7 @@ pub struct SourceFile {
|
|||||||
impl ast::ModuleItemOwner for SourceFile {}
|
impl ast::ModuleItemOwner for SourceFile {}
|
||||||
impl ast::AttrsOwner for SourceFile {}
|
impl ast::AttrsOwner for SourceFile {}
|
||||||
impl ast::DocCommentsOwner for SourceFile {}
|
impl ast::DocCommentsOwner for SourceFile {}
|
||||||
impl SourceFile {
|
impl SourceFile {}
|
||||||
pub fn modules(&self) -> AstChildren<Module> { support::children(&self.syntax) }
|
|
||||||
}
|
|
||||||
/// Function definition either with body or not.
|
/// Function definition either with body or not.
|
||||||
/// Includes all of its attributes and doc comments.
|
/// Includes all of its attributes and doc comments.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -322,7 +322,6 @@ pub(crate) fn rust_ast() -> AstSrc {
|
|||||||
///
|
///
|
||||||
/// [Reference](https://doc.rust-lang.org/reference/crates-and-source-files.html)
|
/// [Reference](https://doc.rust-lang.org/reference/crates-and-source-files.html)
|
||||||
struct SourceFile: ModuleItemOwner, AttrsOwner, DocCommentsOwner {
|
struct SourceFile: ModuleItemOwner, AttrsOwner, DocCommentsOwner {
|
||||||
modules: [Module],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Function definition either with body or not.
|
/// Function definition either with body or not.
|
||||||
|
|||||||
Reference in New Issue
Block a user