about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-09-19 04:20:56 +0000
committerbors <bors@rust-lang.org>2017-09-19 04:20:56 +0000
commit9a00f3cc306f2f79bfbd54f1986d8ca7a74f6661 (patch)
treef1ce101bf0f70075ec37e492104a6a4ed62e7baa /src/rustllvm/RustWrapper.cpp
parent06bb0e01be7e6774caff3dccf7e60a8f321cc586 (diff)
parent64f61113ebdc32ba5f9898fe191ca84fba6eeb94 (diff)
downloadrust-9a00f3cc306f2f79bfbd54f1986d8ca7a74f6661.tar.gz
rust-9a00f3cc306f2f79bfbd54f1986d8ca7a74f6661.zip
Auto merge of #44026 - QuietMisdreavus:trimmed-std, r=steveklabnik
hide internal types/traits from std docs via new #[doc(masked)] attribute

Fixes #43701 (hopefully for good this time)

This PR introduces a new parameter to the `#[doc]` attribute that rustdoc looks for on `extern crate` statements. When it sees `#[doc(masked)]` on such a statement, it hides traits and types from that crate from appearing in either the "Trait Implementations" section of many type pages, or the "Implementors" section of trait pages. This is then applied to the `libc`/`rand`/`compiler_builtins` imports in libstd to prevent those crates from creating broken links in the std docs.

Like in #43348, this also introduces a feature gate, `doc_masked`, that controls the use of this parameter.

To view the std docs generated with this change, head to https://tonberry.quietmisdreavus.net/std-43701/std/index.html.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions