rust/src/librustdoc
bors 487e961c6a Auto merge of #52181 - QuietMisdreavus:panicked-tester, r=GuillaumeGomez
rustdoc: set panic output before starting compiler thread pool

When the compiler was updated to run on a thread pool, rustdoc's processing of compiler/doctest stderr/stdout was moved into each compiler thread. However, this caused output of the test to be lost if the test failed at *runtime* instead of compile time. This change sets up the `set_panic` call and output bomb before starting the compiler thread pool, so that the `Drop` call that writes back to the test's stdout happens after the test runs, not just after it compiles.

Fixes https://github.com/rust-lang/rust/issues/51162
2018-07-24 19:34:11 +00:00
..
2018-07-18 10:53:08 +02:00
2018-06-25 23:28:20 +02:00
2018-07-18 10:53:08 +02:00
2018-07-10 10:41:39 -04:00
2018-06-03 11:29:44 -06:00

For more information about how librustdoc works, see the rustc guide.