Unnamed repository; edit this file 'description' to name the repository.
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
bors 2023-03-02
parent 32424d0 · parent 88f2abb · commit 9b441b9
-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 45cb896196..691c9a275d 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(