mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Remove crate graph deduplication logic
This commit is contained in:
parent
dd026ce6a4
commit
8905f86d8a
9 changed files with 5 additions and 19657 deletions
|
@ -1456,7 +1456,7 @@ fn sysroot_to_crate_graph(
|
|||
|
||||
// Remove all crates except the ones we are interested in to keep the sysroot graph small.
|
||||
let removed_mapping = cg.remove_crates_except(&marker_set);
|
||||
let mapping = crate_graph.extend(cg, &mut pm, |(_, a), (_, b)| a == b);
|
||||
let mapping = crate_graph.extend(cg, &mut pm);
|
||||
|
||||
// Map the id through the removal mapping first, then through the crate graph extension mapping.
|
||||
pub_deps.iter_mut().for_each(|(_, cid, _)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue