rust/src/test
Dylan DPC 71b0ea6235
Rollup merge of #77672 - Nemo157:simplify-cfg, r=jyn514
Simplify doc-cfg rendering based on the current context

For sub-items on a page don't show cfg that has already been rendered on
a parent item. At its simplest this means not showing anything that is
shown in the portability message at the top of the page, but also for
things like fields of an enum variant if that variant itself is
cfg-gated then don't repeat those cfg on each field of the variant.

This does not touch trait implementation rendering, as that is more
complex and there are existing issues around how it deals with doc-cfg
that need to be fixed first.

### Screenshots, left is current, right is new:

![image](https://user-images.githubusercontent.com/81079/95387261-c2e6a200-08f0-11eb-90d4-0a9734acd922.png)

![image](https://user-images.githubusercontent.com/81079/95387458-06411080-08f1-11eb-81f7-5dd7f37695dd.png)

![image](https://user-images.githubusercontent.com/81079/95387702-6637b700-08f1-11eb-82f4-46b6cd9b24f2.png)

![image](https://user-images.githubusercontent.com/81079/95387905-b9aa0500-08f1-11eb-8d95-8b618d31d419.png)

![image](https://user-images.githubusercontent.com/81079/95388300-5bc9ed00-08f2-11eb-9ac9-b92cbdb60b89.png)

cc #43781
2020-10-16 02:10:19 +02:00
..
assembly Add asm! support for mips64 2020-10-04 12:01:21 +00:00
auxiliary
codegen Auto merge of #76830 - Artoria2e5:tune, r=nagisa 2020-10-13 02:49:00 +00:00
codegen-units Move from {{closure}}#0 syntax to {closure#0} for (def) path components 2020-09-25 22:46:14 +01:00
compile-fail Add compile fail test for issue 27675 2020-10-08 08:18:59 +02:00
debuginfo BTreeMap: fix gdb introspection of BTreeMap with ZST keys or values 2020-10-10 15:27:51 +02:00
incremental Auto merge of #76859 - Aaron1011:fix/llvm-cgu-reuse, r=davidtwco,nikic 2020-10-11 20:50:02 +00:00
mir-opt Fix tests from rebase 2020-10-06 11:19:33 +01:00
pretty pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
run-make cleaning up code 2020-09-25 15:13:55 +02:00
run-make-fulldeps Fix hotplug_codegen_backend test 2020-10-10 19:00:51 +02:00
run-pass-valgrind
rustdoc Rollup merge of #77672 - Nemo157:simplify-cfg, r=jyn514 2020-10-16 02:10:19 +02:00
rustdoc-js Add test for whitespace in doc alias 2020-10-05 16:37:13 +02:00
rustdoc-js-std
rustdoc-ui Rollup merge of #77753 - GuillaumeGomez:check-html-comments, r=jyn514 2020-10-15 07:32:31 +09:00
rustfix
ui Rollup merge of #77493 - hosseind88:ICEs_should_always_print_the_top_of_the_query_stack, r=oli-obk 2020-10-16 02:10:09 +02:00
ui-fulldeps Replace run_compiler with RunCompiler builder pattern. 2020-10-08 16:11:45 -03:00
COMPILER_TESTS.md