don't use rustflags for --rustc-args

This commit is contained in:
Rémy Rakic 2024-08-08 18:03:55 +00:00
parent e08b80c0fb
commit 83727eca21

View File

@ -2226,11 +2226,6 @@ fn cargo(
rustdocflags.arg("--cfg=parallel_compiler"); rustdocflags.arg("--cfg=parallel_compiler");
} }
// Pass the value of `--rustc-args` from test command. If it's not a test command, this won't set anything.
self.config.cmd.rustc_args().iter().for_each(|v| {
rustflags.arg(v);
});
Cargo { Cargo {
command: cargo, command: cargo,
compiler, compiler,