thread info about dep names

This commit is contained in:
Aleksey Kladov 2018-12-09 01:02:53 +03:00
parent ca7e5905c1
commit 961cae7e53
3 changed files with 24 additions and 12 deletions

View file

@ -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);
}
}
}