Skip to content

Commit ed47fd2

Browse files
committed
fix(clean): Clean hosts builds with new layout
1 parent bc58393 commit ed47fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ fn clean_specs(
201201
clean_ctx.progress.on_cleaning_package(&pkg.name())?;
202202

203203
if clean_ctx.gctx.cli_unstable().build_dir_new_layout {
204-
for (_compile_kind, layout) in &layouts {
204+
for (_compile_kind, layout) in &layouts_with_host {
205205
let dir = layout.build_dir().build_unit(&pkg.name());
206206
clean_ctx.rm_rf_glob(&dir)?;
207207
}

0 commit comments

Comments
 (0)