mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
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
This commit is contained in:
commit
cd692cc7ec
@ -429,8 +429,12 @@ impl Collector {
|
||||
should_panic: testing::ShouldPanic::No,
|
||||
},
|
||||
testfn: testing::DynTestFn(box move |()| {
|
||||
let panic = io::set_panic(None);
|
||||
let print = io::set_print(None);
|
||||
match {
|
||||
rustc_driver::in_rustc_thread(move || {
|
||||
io::set_panic(panic);
|
||||
io::set_print(print);
|
||||
runtest(&test,
|
||||
&cratename,
|
||||
cfgs,
|
||||
|
Loading…
Reference in New Issue
Block a user