about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-02 11:56:31 +0000
committerbors <bors@rust-lang.org>2023-03-02 11:56:31 +0000
commit9b441b9c67531481c7c18cd09b2397c0591ae63f (patch)
tree9fbbd5198e175993621eb2e26e402d95500d64c5
parent32424d0aba3f9e20576aff0a1c89e01ac3ad8b62 (diff)
parent88f2abb8f7a4bb838352d07e58bf41020045931a (diff)
downloadrust-9b441b9c67531481c7c18cd09b2397c0591ae63f.tar.gz
rust-9b441b9c67531481c7c18cd09b2397c0591ae63f.zip
Auto merge of #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
-rw-r--r--crates/project-model/src/workspace.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/project-model/src/workspace.rs b/crates/project-model/src/workspace.rs
index 45cb8961961..691c9a275d9 100644
--- a/crates/project-model/src/workspace.rs
+++ b/crates/project-model/src/workspace.rs
@@ -249,10 +249,6 @@ impl ProjectWorkspace {
                 };
 
                 let rustc = match rustc_dir {
-                    Some(rustc_dir) if rustc_dir == cargo_toml => {
-                        tracing::info!(rustc_dir = %rustc_dir.display(), "Workspace is the rustc workspace itself, not adding the rustc workspace separately");
-                        None
-                    }
                     Some(rustc_dir) => {
                         tracing::info!(workspace = %cargo_toml.display(), rustc_dir = %rustc_dir.display(), "Using rustc source");
                         match CargoWorkspace::fetch_metadata(