diff options
author | Lukas Wirth <[email protected]> | 2021-03-15 16:43:46 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-15 17:28:31 +0000 |
commit | e97cd709cd91ccfafbd45bab8b2bf01f3ddf6a04 (patch) | |
tree | bb6e1bcfae7fd44a7a63be31a17dc6e68799e7d5 /crates/ide_db | |
parent | eec64ec01b0553aca855df8146965ed6c6746e7d (diff) |
Implement Crate::transitive_reverse_dependencies
Diffstat (limited to 'crates/ide_db')
-rw-r--r-- | crates/ide_db/src/search.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_db/src/search.rs b/crates/ide_db/src/search.rs index d00a8b6e7..f56221a6c 100644 --- a/crates/ide_db/src/search.rs +++ b/crates/ide_db/src/search.rs | |||
@@ -260,7 +260,7 @@ impl Definition { | |||
260 | let mut res = source_root.iter().map(|id| (id, None)).collect::<FxHashMap<_, _>>(); | 260 | let mut res = source_root.iter().map(|id| (id, None)).collect::<FxHashMap<_, _>>(); |
261 | 261 | ||
262 | let krate = module.krate(); | 262 | let krate = module.krate(); |
263 | for rev_dep in krate.reverse_dependencies(db) { | 263 | for rev_dep in krate.transitive_reverse_dependencies(db) { |
264 | let root_file = rev_dep.root_file(db); | 264 | let root_file = rev_dep.root_file(db); |
265 | let source_root_id = db.file_source_root(root_file); | 265 | let source_root_id = db.file_source_root(root_file); |
266 | let source_root = db.source_root(source_root_id); | 266 | let source_root = db.source_root(source_root_id); |