Skip to content

Commit 877f745

Browse files
committed
Fix the comment
It's worse than I thought...
1 parent 419b5a1 commit 877f745

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/project_model/src/workspace.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,16 +478,16 @@ fn handle_rustc_crates(
478478
// The root package of the rustc-dev component is rustc_driver, so we match that
479479
let root_pkg =
480480
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)
482-
// and `rustcSource` is set to discover.
481+
// The rustc workspace might be incomplete (such as if rustc-dev is not
482+
// installed for the current toolchain) and `rustcSource` is set to discover.
483483
if let Some(root_pkg) = root_pkg {
484484
// Iterate through every crate in the dependency subtree of rustc_driver using BFS
485485
let mut queue = VecDeque::new();
486486
queue.push_back(root_pkg);
487487
while let Some(pkg) = queue.pop_front() {
488488
// 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
490-
// neither of which makes
489+
// N.B. if this line is ommitted, we try to analyse over 4_800_000 crates
490+
// which is not ideal
491491
if rustc_pkg_crates.contains_key(&pkg) {
492492
continue;
493493
}

0 commit comments

Comments
 (0)