Skip to content

Commit 9b441b9

Browse files
committed
Auto merge of rust-lang#14234 - Veykril:rustc-crate-check, r=Veykril
Don't drop rustc crates in the rustc workspace Turns out the rustc workspace has tools that rely on the external crates themselves so this check is faulty
2 parents 32424d0 + 88f2abb commit 9b441b9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/project-model/src/workspace.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@ impl ProjectWorkspace {
249249
};
250250

251251
let rustc = match rustc_dir {
252-
Some(rustc_dir) if rustc_dir == cargo_toml => {
253-
tracing::info!(rustc_dir = %rustc_dir.display(), "Workspace is the rustc workspace itself, not adding the rustc workspace separately");
254-
None
255-
}
256252
Some(rustc_dir) => {
257253
tracing::info!(workspace = %cargo_toml.display(), rustc_dir = %rustc_dir.display(), "Using rustc source");
258254
match CargoWorkspace::fetch_metadata(

0 commit comments

Comments
 (0)