aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorDaniel McNab <[email protected]>2021-03-07 13:13:54 +0000
committerDaniel McNab <[email protected]>2021-03-07 13:13:54 +0000
commit877f745551ff74da987a61f1c8a059d30140fb8a (patch)
tree3548b4a61e5e192b961aa588ae6d63f00e2d3107 /crates
parent419b5a1bee3424b646991530f31b617a08c8375c (diff)
Fix the comment
It's worse than I thought...
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 }