We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9155c00 commit 3f749f6Copy full SHA for 3f749f6
crates/cargo-util/src/process_builder.rs
@@ -413,10 +413,11 @@ impl ProcessBuilder {
413
.prefix("cargo-argfile.")
414
.tempfile()?;
415
416
- let path = tmp.path().display();
+ let mut arg = OsString::from("@");
417
+ arg.push(tmp.path());
418
let mut cmd = self.build_command_without_args();
- cmd.arg(format!("@{path}"));
419
- log::debug!("created argfile at {path} for `{self}`");
+ cmd.arg(arg);
420
+ log::debug!("created argfile at {} for {self}", tmp.path().display());
421
422
let cap = self.get_args().map(|arg| arg.len() + 1).sum::<usize>();
423
let mut buf = Vec::with_capacity(cap);
0 commit comments