Skip to content

Commit 600747a

Browse files
committed
Fix patch_cfg_if not applying with stitched sysroot
1 parent 23dd54b commit 600747a

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)