about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-09-24 14:09:11 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-09-25 14:27:43 -0700
commitf648690234ddbf4a8f91b7997a13ce72a8b36958 (patch)
tree2cfa825135860a21bea8f968b9553e1861141186
parentc4219a478354b464079b1b7ab081e071e8e39765 (diff)
downloadrust-f648690234ddbf4a8f91b7997a13ce72a8b36958.tar.gz
rust-f648690234ddbf4a8f91b7997a13ce72a8b36958.zip
rustdoc: Strip hidden docs by default.
-rw-r--r--src/libextra/extra.rs3
-rw-r--r--src/librustdoc/rustdoc.rs1
-rw-r--r--src/libstd/std.rs3
3 files changed, 3 insertions, 4 deletions
diff --git a/src/libextra/extra.rs b/src/libextra/extra.rs
index fc4b2947d1b..f55eff9360d 100644
--- a/src/libextra/extra.rs
+++ b/src/libextra/extra.rs
@@ -26,8 +26,7 @@ Rust extras are part of the standard Rust distribution.
        url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
 
 #[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      passes = "strip-hidden")];
+      html_favicon_url = "http://www.rust-lang.org/favicon.ico")];
 
 #[comment = "Rust extras"];
 #[license = "MIT/ASL2"];
diff --git a/src/librustdoc/rustdoc.rs b/src/librustdoc/rustdoc.rs
index dd52058be8a..fb0091d5284 100644
--- a/src/librustdoc/rustdoc.rs
+++ b/src/librustdoc/rustdoc.rs
@@ -63,6 +63,7 @@ static PASSES: &'static [Pass] = &[
 static DEFAULT_PASSES: &'static [&'static str] = &[
     "unindent-comments",
     "collapse-docs",
+    "strip-hidden",
     "strip-private",
 ];
 
diff --git a/src/libstd/std.rs b/src/libstd/std.rs
index 5c1bac7418e..46d655e6379 100644
--- a/src/libstd/std.rs
+++ b/src/libstd/std.rs
@@ -58,8 +58,7 @@ they contained the following prologue:
 #[crate_type = "lib"];
 
 #[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
-      html_favicon_url = "http://www.rust-lang.org/favicon.ico",
-      passes = "strip-hidden")];
+      html_favicon_url = "http://www.rust-lang.org/favicon.ico")];
 
 // Don't link to std. We are std.
 #[no_std];