]> git.lizzy.rs Git - rust.git/commitdiff
Fix `rustcSource` -> `rustc_source`
authorTonalidadeHidrica <47710717+TonalidadeHidrica@users.noreply.github.com>
Mon, 11 Jul 2022 07:50:20 +0000 (16:50 +0900)
committerTonalidadeHidrica <47710717+TonalidadeHidrica@users.noreply.github.com>
Mon, 11 Jul 2022 07:50:20 +0000 (16:50 +0900)
This only fixes the comments in the internal source,
     which is not mandatory at all

crates/project-model/src/workspace.rs

index ad2f7e51bbfb1c0a86b97e7d92822fa1cbfea83c..de42458354566f481b944db43b753c2328c3cefd 100644 (file)
@@ -737,7 +737,7 @@ fn handle_rustc_crates(
     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.
+    // installed for the current toolchain) and `rustc_source` 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();
@@ -822,7 +822,7 @@ fn handle_rustc_crates(
                 for (from, _) in pkg_crates.get(&pkg).into_iter().flatten() {
                     // Avoid creating duplicate dependencies
                     // This avoids the situation where `from` depends on e.g. `arrayvec`, but
-                    // `rust_analyzer` thinks that it should use the one from the `rustcSource`
+                    // `rust_analyzer` thinks that it should use the one from the `rustc_source`
                     // instead of the one from `crates.io`
                     if !crate_graph[*from].dependencies.iter().any(|d| d.name == name) {
                         add_dep(crate_graph, *from, name.clone(), to);