rust/src/librustdoc
bors 9a00f3cc30 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.
2017-09-19 04:20:56 +00:00
..
clean Auto merge of #44026 - QuietMisdreavus:trimmed-std, r=steveklabnik 2017-09-19 04:20:56 +00:00
html Auto merge of #44026 - QuietMisdreavus:trimmed-std, r=steveklabnik 2017-09-19 04:20:56 +00:00
passes
build.rs rustc: Make CrateStore private to TyCtxt 2017-09-12 21:14:06 -07:00
Cargo.toml Test rustdoc unit tests. 2017-09-05 11:17:52 -06:00
core.rs incr.comp.: Remove tcx from StableHashingContext. 2017-09-18 11:29:47 +02:00
doctree.rs
externalfiles.rs
fold.rs
lib.rs rustc: use ty::Const for the length of TyArray. 2017-09-11 08:41:15 +03:00
markdown.rs
plugins.rs
test.rs incr.comp.: Remove tcx from StableHashingContext. 2017-09-18 11:29:47 +02:00
visit_ast.rs rustc: Make CrateStore private to TyCtxt 2017-09-12 21:14:06 -07:00
visit_lib.rs rustc: Flag some CrateStore methods as "untracked" 2017-09-05 07:37:39 -07:00