mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Less abstract CrateData api
This commit is contained in:
parent
5cffef56e2
commit
e1aa96f2c5
9 changed files with 48 additions and 51 deletions
|
@ -176,7 +176,7 @@ fn find_importable_locations(
|
|||
// directly (only through reexports in direct dependencies).
|
||||
for krate in Some(from.krate)
|
||||
.into_iter()
|
||||
.chain(crate_graph.dependencies(from.krate).map(|dep| dep.crate_id))
|
||||
.chain(crate_graph.crate_data(&from.krate).dependencies.iter().map(|dep| dep.crate_id))
|
||||
{
|
||||
result.extend(
|
||||
importable_locations_in_crate(db, item, krate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue