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.
2 parents 60f6b41 + 844600e commit 6806579Copy full SHA for 6806579
src/cargo/ops/cargo_test.rs
@@ -214,6 +214,13 @@ fn run_doc_tests(
214
gctx.shell().status("Doc-tests", unit.target.name())?;
215
let mut p = compilation.rustdoc_process(unit, *script_meta)?;
216
217
+ let color_arg = match color {
218
+ ColorChoice::Always => "always",
219
+ ColorChoice::Never => "never",
220
+ ColorChoice::CargoAuto => "auto",
221
+ };
222
+ p.arg("--color").arg(color_arg);
223
+
224
for (var, value) in env {
225
p.env(var, value);
226
}
0 commit comments