Skip to content

Commit cd692cc

Browse files
committed
Auto merge of #39354 - alexcrichton:less-output, r=steveklabnik
rustdoc: Suppress warnings/errors with --test Threads spawned by the test framework have their output captured by default, so for `rustdoc --test` threads this propagates that capturing to the spawned thread that we now have. Closes #39327
2 parents 0c85f2a + e2ef630 commit cd692cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/test.rs

+4
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,12 @@ impl Collector {
429429
should_panic: testing::ShouldPanic::No,
430430
},
431431
testfn: testing::DynTestFn(box move |()| {
432+
let panic = io::set_panic(None);
433+
let print = io::set_print(None);
432434
match {
433435
rustc_driver::in_rustc_thread(move || {
436+
io::set_panic(panic);
437+
io::set_print(print);
434438
runtest(&test,
435439
&cratename,
436440
cfgs,

0 commit comments

Comments
 (0)