rust/src/test/rustdoc-ui
Dylan DPC cd4652a195
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
2020-01-20 11:14:49 +05:30
..
coverage Replace abstract type with type alias impl Trait 2019-08-02 02:44:36 +01:00
.gitattributes fix intra-link resolution spans in block comments 2018-12-10 21:08:26 -05:00
cfg-test.rs stabilize cfg(doctest) 2019-10-29 13:42:55 +01:00
cfg-test.stdout stabilize cfg(doctest) 2019-10-29 13:42:55 +01:00
deny-intra-link-resolution-failure.rs Remove licenses 2018-12-25 21:08:33 -07:00
deny-intra-link-resolution-failure.stderr Update error messages 2019-11-25 14:24:53 +01:00
deny-missing-docs-crate.rs Removed more copyright notices. 2019-01-13 19:47:02 +00:00
deny-missing-docs-crate.stderr Update tests 2019-03-11 23:10:26 +03:00
deny-missing-docs-macro.rs Removed more copyright notices. 2019-01-13 19:47:02 +00:00
deny-missing-docs-macro.stderr Update tests 2019-03-11 23:10:26 +03:00
deprecated-attrs.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
deprecated-attrs.stderr add -Zui-testing to rustdoc 2018-09-19 18:39:39 -05:00
doc-test-doctest-feature.rs Add and update rustdoc ui test 2019-10-10 11:37:13 +02:00
doc-test-doctest-feature.stdout Add and update rustdoc ui test 2019-10-10 11:37:13 +02:00
doc-test-rustdoc-feature.rs rename cfg(rustdoc) into cfg(doc) 2019-11-06 18:32:51 +01:00
doc-test-rustdoc-feature.stdout Add new rustdoc-ui test to ensuire that rustdoc feature isn't passed down to doctests 2019-10-01 14:38:36 +02:00
doc-without-codeblock.rs Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
doc-without-codeblock.stderr Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
failed-doctest-compile-fail.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-compile-fail.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-missing-codes.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-missing-codes.stdout Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
failed-doctest-output.rs Improve Rustdoc's handling of procedural macros 2019-08-24 13:11:57 -04:00
failed-doctest-output.stdout Update output-default.json and rustdoc test 2020-01-12 15:37:50 +00:00
failed-doctest-should-panic.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-should-panic.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
intra-doc-alias-ice.rs Remove licenses 2018-12-25 21:08:33 -07:00
intra-doc-alias-ice.stderr Update error messages 2019-11-25 14:24:53 +01:00
intra-link-span-ice-55723.rs Update error messages 2019-11-25 14:24:53 +01:00
intra-link-span-ice-55723.stderr Update error messages 2019-11-25 14:24:53 +01:00
intra-links-ambiguity.rs overhaul intra-doc-link ambiguity warning 2019-03-15 14:15:06 -04:00
intra-links-ambiguity.stderr Increase spacing for suggestions in diagnostics 2019-10-24 12:26:01 -07:00
intra-links-anchors.rs Update error messages 2019-11-25 14:24:53 +01:00
intra-links-anchors.stderr Update error messages 2019-11-25 14:24:53 +01:00
intra-links-warning-crlf.rs Add warning annotations to rustdoc-ui tests 2019-11-10 21:01:02 +01:00
intra-links-warning-crlf.stderr Update error messages 2019-11-25 14:24:53 +01:00
intra-links-warning.rs Add warning annotations to rustdoc-ui tests 2019-11-10 21:01:02 +01:00
intra-links-warning.stderr Update error messages 2019-11-25 14:24:53 +01:00
invalid-syntax.rs rustdoc: Catch fatal errors when syntax highlighting 2020-01-17 23:44:44 +00:00
invalid-syntax.stderr rustdoc: Catch fatal errors when syntax highlighting 2020-01-17 23:44:44 +00:00
issue-58473-2.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
issue-58473.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
issue-61732.rs rustdoc: Add test for fixed issue 2019-12-04 01:31:35 +00:00
issue-61732.stderr rustdoc: Add test for fixed issue 2019-12-04 01:31:35 +00:00
lint-group.rs Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
lint-group.stderr Auto merge of #66675 - GuillaumeGomez:support-anchors-intra-doc-links, r=kinnison 2019-11-27 04:51:31 +00:00
lint-missing-doc-code-example.rs Update rustdoc-ui tests 2019-05-18 12:45:29 +02:00
lint-missing-doc-code-example.stderr Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
private-item-doc-test.rs Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
private-item-doc-test.stderr Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
test-compile-fail1.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail1.stderr rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail2.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail2.stderr rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail3.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail3.stderr rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-no_std.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-no_std.stdout rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
unparseable-doc-test.rs report fatal errors during doctest parsing 2019-04-24 00:03:53 -04:00
unparseable-doc-test.stdout rustdoc: forward -Z options to rustc 2019-10-11 22:29:11 +02:00
unused.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00