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 54bc19e commit caadd7dCopy full SHA for caadd7d
src/cargo/ops/cargo_test.rs
@@ -233,7 +233,15 @@ fn run_doc_tests(
233
}
234
235
for arg in test_args {
236
- p.arg("--test-args").arg(arg);
+ // We special-case "--nocapture" because rustdoc needs to handle it directly.
237
+ if *arg == "--nocapture" {
238
+ // FIXME(GuillaumeGomez): remove the `unstable-options` once rustdoc stabilizes the
239
+ // `--nocapture` option.
240
+ p.arg("-Z").arg("unstable-options");
241
+ p.arg(arg);
242
+ } else {
243
+ p.arg("--test-args").arg(arg);
244
+ }
245
246
247
p.args(args);
0 commit comments