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.
nocapture
1 parent c5ae545 commit 0bd2c99Copy full SHA for 0bd2c99
src/librustdoc/doctest.rs
@@ -542,9 +542,11 @@ fn run_test(
542
return Err(TestFailure::CompileError);
543
}
544
compiler.arg(input_file);
545
- // FIXME: Remove once done fixing bugs.
546
- // FIXME: Should this call only be done if `nocapture` is not set?
547
- // compiler.stderr(Stdio::null());
+ if !rustdoc_options.nocapture {
+ // If `nocapture` is disabled, then we don't display rustc's output when compiling
+ // the merged doctests.
548
+ compiler.stderr(Stdio::null());
549
+ }
550
} else {
551
compiler.arg("-");
552
compiler.stdin(Stdio::piped());
0 commit comments