mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
thread info about dep names
This commit is contained in:
parent
ca7e5905c1
commit
961cae7e53
3 changed files with 24 additions and 12 deletions
|
@ -162,9 +162,9 @@ impl ServerWorldState {
|
|||
}
|
||||
for pkg in ws.packages() {
|
||||
for dep in pkg.dependencies(ws) {
|
||||
if let Some(&to) = pkg_to_lib_crate.get(&dep) {
|
||||
if let Some(&to) = pkg_to_lib_crate.get(&dep.pkg) {
|
||||
for &from in pkg_crates.get(&pkg).into_iter().flatten() {
|
||||
crate_graph.add_dep(from, to);
|
||||
crate_graph.add_dep(from, dep.name.clone(), to);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue