We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f9cc6 commit 2ad14b8Copy full SHA for 2ad14b8
crates/project-model/src/workspace.rs
@@ -1250,6 +1250,7 @@ fn handle_rustc_crates(
1250
let kind @ TargetKind::Lib { is_proc_macro } = rustc_workspace[tgt].kind else {
1251
continue;
1252
};
1253
+ let pkg_crates = &mut rustc_pkg_crates.entry(pkg).or_insert_with(Vec::new);
1254
if let Some(file_id) = load(&rustc_workspace[tgt].root) {
1255
let crate_id = add_target_crate_root(
1256
crate_graph,
@@ -1268,7 +1269,7 @@ fn handle_rustc_crates(
1268
1269
if let Some(proc_macro) = libproc_macro {
1270
add_proc_macro_dep(crate_graph, crate_id, proc_macro, is_proc_macro);
1271
}
- rustc_pkg_crates.entry(pkg).or_insert_with(Vec::new).push(crate_id);
1272
+ pkg_crates.push(crate_id);
1273
1274
1275
0 commit comments