]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #68357 - ollie27:rustdoc_test_errors, r=GuillaumeGomez
authorDylan DPC <dylan.dpc@gmail.com>
Mon, 20 Jan 2020 05:44:49 +0000 (11:14 +0530)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2020 05:44:49 +0000 (11:14 +0530)
commitcd4652a195ff019481c719a3d66ef4938c20e3d9
tree50995003e8e821f4fe7dbda5ff4cae9ec0e3134c
parentfb86b820bbde7772477a95e36a70f06578313de2
parent17f4cbc3032f7e81f0ec0c7e3b4cd0c3da30c916
Rollup merge of #68357 - ollie27:rustdoc_test_errors, r=GuillaumeGomez

rustdoc: Fix handling of compile errors when running `rustdoc --test`

 * Call `abort_if_errors` so all errors actually stop rustdoc.
* Don't panic with "compiler aborted in rustdoc!", instead just exit to avoid the ugly panic message.
* Use rlib as the crate type when searching for doctests matching what is used for doc generation so `#[no_std]` crates don't create "no global memory allocator" errors.

Fixes #52243
Fixes #54010

r? @GuillaumeGomez
src/librustdoc/test.rs