rust/src
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
..
bootstrap Auto merge of #77756 - alarsyo:setup-llvm-detect, r=jyn514 2020-10-15 02:10:11 +00:00
build_helper cleanup: Remove duplicate library names from Cargo.tomls 2020-08-30 22:57:54 +03:00
ci Update Xcode beta version to allow aarch64-apple-darwin to compile again 2020-10-14 13:51:28 -04:00
doc Rollup merge of #77951 - ehuss:update-books, r=ehuss 2020-10-15 07:32:40 +09:00
etc Rollup merge of #77788 - ssomers:btree_cleanup_gdb, r=Mark-Simulacrum 2020-10-14 02:30:36 +02:00
librustdoc Rollup merge of #77672 - Nemo157:simplify-cfg, r=jyn514 2020-10-16 02:10:19 +02:00
llvm-project@3c5d47c81d Rebase LLVM onto 11.0.0 final 2020-10-14 12:13:20 -07:00
test Rollup merge of #77672 - Nemo157:simplify-cfg, r=jyn514 2020-10-16 02:10:19 +02:00
tools 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
README.md Update README.md 2020-08-30 13:40:11 -05:00
stage0.txt Bump to 1.48 bootstrap compiler 2020-10-07 19:51:36 -04:00
version Bump version to 1.49.0 2020-10-02 08:39:40 -04:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.