mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-29 06:44:12 +00:00
Add a hacky remidy for #6038
The proper fix I think is: * move rust-lang/rust library crates to a separate workspace * when packaging rust-src component, vendor sources of external deps
This commit is contained in:
parent
378dd90bab
commit
7a21e9302e
2 changed files with 28 additions and 0 deletions
|
@ -485,6 +485,11 @@ impl ProjectWorkspace {
|
|||
}
|
||||
}
|
||||
}
|
||||
if crate_graph.patch_cfg_if() {
|
||||
log::debug!("Patched std to depend on cfg-if")
|
||||
} else {
|
||||
log::debug!("Did not patch std to depend on cfg-if")
|
||||
}
|
||||
crate_graph
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue