about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorWim Looman <git@nemo157.com>2020-10-06 20:48:01 +0200
committerWim Looman <git@nemo157.com>2020-10-07 22:54:12 +0200
commit6f0544abe4b62021ad2849a24db9f89ca3d38ddb (patch)
tree5d1096f605f3eaa7b1a2cb7fc283232ea36e4602 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentd890e64dff3fd2c28635c60cc9315648dd46c8f7 (diff)
downloadrust-6f0544abe4b62021ad2849a24db9f89ca3d38ddb.tar.gz
rust-6f0544abe4b62021ad2849a24db9f89ca3d38ddb.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions