about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-04-02 15:04:40 +0200
committerLukas Wirth <lukastw97@gmail.com>2024-04-02 15:04:40 +0200
commit600747a1b42c0cd666d19b102e91ded048dac567 (patch)
tree65e6090833ef2b6a05f5d6d5530af084cd654337
parent23dd54b010ec0013438e097b17fe2fd47628fb28 (diff)
downloadrust-600747a1b42c0cd666d19b102e91ded048dac567.tar.gz
rust-600747a1b42c0cd666d19b102e91ded048dac567.zip
Fix `patch_cfg_if` not applying with stitched sysroot
-rw-r--r--crates/project-model/src/workspace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/project-model/src/workspace.rs b/crates/project-model/src/workspace.rs
index d752b2f32ee..b59c0d59e47 100644
--- a/crates/project-model/src/workspace.rs
+++ b/crates/project-model/src/workspace.rs
@@ -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")