rust/src/librustdoc
bors 3740ba2a7d Auto merge of #84863 - ABouttefeux:libtest, r=m-ou-se
Show test type during prints

Test output can sometimes be confusing. For example doctest with the no_run argument are displayed the same way than test that are run.

During #83857 I got the feedback that test output can be confusing.

For the moment test output is
```
test $DIR/test-type.rs - f (line 12) ... ignored
test $DIR/test-type.rs - f (line 15) ... ok
test $DIR/test-type.rs - f (line 21) ... ok
test $DIR/test-type.rs - f (line 6) ... ok
```

I propose to change output by indicating the test type as
```
test $DIR/test-type.rs - f (line 12) ... ignored
test $DIR/test-type.rs - f (line 15) - compile ... ok
test $DIR/test-type.rs - f (line 21) - compile fail ... ok
test $DIR/test-type.rs - f (line 6) ... ok
```
by indicating the test type after the test name (and in the case of doctest after the function name and line) and before the "...".

------------

Note: this is a proof of concept, the implementation is probably not optimal as the properties added in `TestDesc` are only use in the display and does not represent actual change of behavior, maybe `TestType::DocTest` could have fields
2021-06-06 09:13:59 +00:00
..
clean Auto merge of #85990 - jyn514:channel-replace-rustdoc, r=Manishearth 2021-06-05 08:42:05 +00:00
doctest Fix injected errors when running doctests on a crate named after a keyword 2021-02-11 17:16:43 -05:00
formats Minimize amount of fake DefIds used in rustdoc 2021-05-15 13:21:35 +02:00
html Rollup merge of #85503 - liigo:tooltips, r=GuillaumeGomez 2021-06-05 19:41:41 +02:00
json Rollup merge of #84466 - jyn514:prim-str, r=GuillaumeGomez 2021-06-05 06:13:30 +09:00
passes Auto merge of #85990 - jyn514:channel-replace-rustdoc, r=Manishearth 2021-06-05 08:42:05 +00:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Upgrade minifier version to 0.0.41 2021-05-20 16:51:44 +02:00
config.rs Auto merge of #85788 - rylev:force-warns, r=nikomatsakis 2021-06-04 13:31:51 +00:00
core.rs Rollup merge of #85501 - jyn514:invalid-doc-attrs, r=varkor 2021-06-05 19:41:40 +02:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Auto merge of #84863 - ABouttefeux:libtest, r=m-ou-se 2021-06-06 09:13:59 +00:00
doctree.rs compute where_outer on demand, remove it from Module 2021-05-01 15:33:49 +02:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs rustdoc: Remove unnecessary StripItem wrapper 2021-05-04 21:56:27 -04:00
lib.rs Auto merge of #85990 - jyn514:channel-replace-rustdoc, r=Manishearth 2021-06-05 08:42:05 +00:00
lint.rs Rename INVALID_RUST_CODEBLOCK{,S} 2021-05-17 21:31:04 -04:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Change librustdoc write(.. \n) to writeln(..); fix comment in grammar 2021-05-03 02:19:57 -05:00
visit_ast.rs Restrict access to crate_name. 2021-06-02 18:35:32 +02:00
visit_lib.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00

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