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
This commit is contained in:
bors 2023-03-02 11:56:31 +00:00
commit 9b441b9c67

View file

@ -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(