Rollup merge of #108564 - clubby789:patch-1, r=jyn514

Fix `x clean` with specific paths

Fixes #108517

`cargo clean` takes package names to clean with `-p`, rather than as free args
This commit is contained in:
Matthias Krüger 2023-03-01 01:21:59 +01:00 committed by GitHub
commit 41eb28dc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ macro_rules! clean_crate_tree {
let target = compiler.host;
let mut cargo = builder.bare_cargo(compiler, $mode, target, "clean");
for krate in &*self.crates {
cargo.arg("-p");
cargo.arg(krate);
}