From 877f745551ff74da987a61f1c8a059d30140fb8a Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Sun, 7 Mar 2021 13:13:54 +0000 Subject: Fix the comment It's worse than I thought... --- crates/project_model/src/workspace.rs | 8 ++++---- 1 file 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( // The root package of the rustc-dev component is rustc_driver, so we match that let root_pkg = rustc_workspace.packages().find(|package| rustc_workspace[*package].name == "rustc_driver"); - // The rustc workspace might be incomplete (such as if rustc-dev is not installed for the current toolchain) - // and `rustcSource` is set to discover. + // The rustc workspace might be incomplete (such as if rustc-dev is not + // installed for the current toolchain) and `rustcSource` is set to discover. if let Some(root_pkg) = root_pkg { // Iterate through every crate in the dependency subtree of rustc_driver using BFS let mut queue = VecDeque::new(); queue.push_back(root_pkg); while let Some(pkg) = queue.pop_front() { // Don't duplicate packages if they are dependended on a diamond pattern - // N.B. if this line is ommitted, we try and analyse either 48_000 or 480_000 crates - // neither of which makes + // N.B. if this line is ommitted, we try to analyse over 4_800_000 crates + // which is not ideal if rustc_pkg_crates.contains_key(&pkg) { continue; } -- cgit v1.2.3