mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Auto merge of #16997 - Veykril:cfg-if-patch, r=Veykril
fix: Fix `patch_cfg_if` not applying with stitched sysroot The condition was inverted accidentally..
This commit is contained in:
commit
54faa03121
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