mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Fix patch_cfg_if
not applying with stitched sysroot
This commit is contained in:
parent
23dd54b010
commit
600747a1b4
1 changed files with 1 additions and 1 deletions
|
@ -775,7 +775,7 @@ impl ProjectWorkspace {
|
|||
),
|
||||
};
|
||||
|
||||
if matches!(sysroot.as_ref().map(|it| it.mode()), Ok(SysrootMode::Workspace(_)))
|
||||
if matches!(sysroot.as_ref().map(|it| it.mode()), Ok(SysrootMode::Stitched(_)))
|
||||
&& crate_graph.patch_cfg_if()
|
||||
{
|
||||
tracing::debug!("Patched std to depend on cfg-if")
|
||||
|
|
Loading…
Reference in a new issue