mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Revert #11912 as it parses all visited files
This commit is contained in:
parent
9050db2e80
commit
295f0c57a5
3 changed files with 13 additions and 16 deletions
|
@ -175,8 +175,11 @@ impl Crate {
|
|||
.collect()
|
||||
}
|
||||
|
||||
pub fn transitive_reverse_dependencies(self, db: &dyn HirDatabase) -> Vec<Crate> {
|
||||
db.crate_graph().transitive_rev_deps(self.id).into_iter().map(|id| Crate { id }).collect()
|
||||
pub fn transitive_reverse_dependencies(
|
||||
self,
|
||||
db: &dyn HirDatabase,
|
||||
) -> impl Iterator<Item = Crate> {
|
||||
db.crate_graph().transitive_rev_deps(self.id).map(|id| Crate { id })
|
||||
}
|
||||
|
||||
pub fn root_module(self, db: &dyn HirDatabase) -> Module {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue