9a00f3cc30
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. |
||
---|---|---|
.. | ||
clean | ||
html | ||
passes | ||
build.rs | ||
Cargo.toml | ||
core.rs | ||
doctree.rs | ||
externalfiles.rs | ||
fold.rs | ||
lib.rs | ||
markdown.rs | ||
plugins.rs | ||
test.rs | ||
visit_ast.rs | ||
visit_lib.rs |