Skip to content

Commit 50f2290

Browse files
committed
Try to resolve a build-time conflict with master
This commit changed things a bit: 6263d72.
1 parent 3eb2ae0 commit 50f2290

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/ops/cargo_clean.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ pub fn clean(ws: &Workspace<'_>, opts: &CleanOptions<'_>) -> CargoResult<()> {
175175
// TODO: what to do about build_script_build?
176176
let incremental = layout.incremental().join(format!("{}-*", crate_name));
177177
rm_rf_glob(&incremental, config)?;
178-
rm_rf(&uplift_dir.join("CACHEDIR.TAG"), config)?;
178+
if let Some(uplift_dir) = uplift_dir {
179+
rm_rf(&uplift_dir.join("CACHEDIR.TAG"), config)?;
180+
}
179181
}
180182
}
181183
}

0 commit comments

Comments
 (0)