mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Remove dead code
This commit is contained in:
parent
b9c21078c5
commit
9fb1624c5e
2 changed files with 1 additions and 4 deletions
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue