Skip to content

Commit 54faa03

Browse files
committed
Auto merge of rust-lang#16997 - Veykril:cfg-if-patch, r=Veykril
fix: Fix `patch_cfg_if` not applying with stitched sysroot The condition was inverted accidentally..
2 parents 23dd54b + 600747a commit 54faa03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/project-model/src/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ impl ProjectWorkspace {
775775
),
776776
};
777777

778-
if matches!(sysroot.as_ref().map(|it| it.mode()), Ok(SysrootMode::Workspace(_)))
778+
if matches!(sysroot.as_ref().map(|it| it.mode()), Ok(SysrootMode::Stitched(_)))
779779
&& crate_graph.patch_cfg_if()
780780
{
781781
tracing::debug!("Patched std to depend on cfg-if")

0 commit comments

Comments
 (0)