Skip to content

Commit f648690

Browse files
committed
rustdoc: Strip hidden docs by default.
1 parent c4219a4 commit f648690

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/libextra/extra.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ Rust extras are part of the standard Rust distribution.
2626
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
2727

2828
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
29-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
30-
passes = "strip-hidden")];
29+
html_favicon_url = "http://www.rust-lang.org/favicon.ico")];
3130

3231
#[comment = "Rust extras"];
3332
#[license = "MIT/ASL2"];

src/librustdoc/rustdoc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static PASSES: &'static [Pass] = &[
6363
static DEFAULT_PASSES: &'static [&'static str] = &[
6464
"unindent-comments",
6565
"collapse-docs",
66+
"strip-hidden",
6667
"strip-private",
6768
];
6869

src/libstd/std.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ they contained the following prologue:
5858
#[crate_type = "lib"];
5959

6060
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
61-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
62-
passes = "strip-hidden")];
61+
html_favicon_url = "http://www.rust-lang.org/favicon.ico")];
6362

6463
// Don't link to std. We are std.
6564
#[no_std];

0 commit comments

Comments
 (0)