aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/project_model/src/workspace.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs
index b2ca7a4d2..ea0c9ff60 100644
--- a/crates/project_model/src/workspace.rs
+++ b/crates/project_model/src/workspace.rs
@@ -478,16 +478,16 @@ fn handle_rustc_crates(
478 // The root package of the rustc-dev component is rustc_driver, so we match that 478 // The root package of the rustc-dev component is rustc_driver, so we match that
479 let root_pkg = 479 let root_pkg =
480 rustc_workspace.packages().find(|package| rustc_workspace[*package].name == "rustc_driver"); 480 rustc_workspace.packages().find(|package| rustc_workspace[*package].name == "rustc_driver");
481 // The rustc workspace might be incomplete (such as if rustc-dev is not installed for the current toolchain) 481 // The rustc workspace might be incomplete (such as if rustc-dev is not
482 // and `rustcSource` is set to discover. 482 // installed for the current toolchain) and `rustcSource` is set to discover.
483 if let Some(root_pkg) = root_pkg { 483 if let Some(root_pkg) = root_pkg {
484 // Iterate through every crate in the dependency subtree of rustc_driver using BFS 484 // Iterate through every crate in the dependency subtree of rustc_driver using BFS
485 let mut queue = VecDeque::new(); 485 let mut queue = VecDeque::new();
486 queue.push_back(root_pkg); 486 queue.push_back(root_pkg);
487 while let Some(pkg) = queue.pop_front() { 487 while let Some(pkg) = queue.pop_front() {
488 // Don't duplicate packages if they are dependended on a diamond pattern 488 // Don't duplicate packages if they are dependended on a diamond pattern
489 // N.B. if this line is ommitted, we try and analyse either 48_000 or 480_000 crates 489 // N.B. if this line is ommitted, we try to analyse over 4_800_000 crates
490 // neither of which makes 490 // which is not ideal
491 if rustc_pkg_crates.contains_key(&pkg) { 491 if rustc_pkg_crates.contains_key(&pkg) {
492 continue; 492 continue;
493 } 493 }