diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-16 14:54:12 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-16 14:54:12 +0000 |
commit | 979e788957ced1957ee9ac1da70fb97abf9fe2b1 (patch) | |
tree | 1777ab043cb0750854b27a8aec805454de5c3277 /crates/ide_db/src | |
parent | b4ed3e1551f828d44dcd8e0caf08420438e5eb1a (diff) | |
parent | bebee2106de7bbd20f54d7f55d5c56dba0d636b6 (diff) |
Merge #8034
8034: Implement Crate::transitive_reverse_dependencies r=matklad a=Veykril
changelog internal Implement Crate::transitive_reverse_dependencies
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_db/src')
-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); |