Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f0649f2

Browse files
Fix rustcSource -> rustc_source
This only fixes the comments in the internal source, which is not mandatory at all
1 parent 195ceea commit f0649f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/project-model/src/workspace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ fn handle_rustc_crates(
737737
let root_pkg =
738738
rustc_workspace.packages().find(|package| rustc_workspace[*package].name == "rustc_driver");
739739
// The rustc workspace might be incomplete (such as if rustc-dev is not
740-
// installed for the current toolchain) and `rustcSource` is set to discover.
740+
// installed for the current toolchain) and `rustc_source` is set to discover.
741741
if let Some(root_pkg) = root_pkg {
742742
// Iterate through every crate in the dependency subtree of rustc_driver using BFS
743743
let mut queue = VecDeque::new();
@@ -822,7 +822,7 @@ fn handle_rustc_crates(
822822
for (from, _) in pkg_crates.get(&pkg).into_iter().flatten() {
823823
// Avoid creating duplicate dependencies
824824
// This avoids the situation where `from` depends on e.g. `arrayvec`, but
825-
// `rust_analyzer` thinks that it should use the one from the `rustcSource`
825+
// `rust_analyzer` thinks that it should use the one from the `rustc_source`
826826
// instead of the one from `crates.io`
827827
if !crate_graph[*from].dependencies.iter().any(|d| d.name == name) {
828828
add_dep(crate_graph, *from, name.clone(), to);

0 commit comments

Comments
 (0)