From beec6e4b2115616e9cfc4283f2b71de1be1aca7a Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Mon, 27 May 2013 13:12:08 -0400 Subject: [PATCH] Get rid of no-longer-needed #[doc(hidden)] attributes. There were several old `#[doc(hidden)]` attributes in libstd and libextra, left over from when rustdoc didn't hide private definitions, tagged with `FIXME #3538`. Since #3538 is now closed, I removed the `#[doc(hidden)]` attributes as well as the FIXMEs, but I left `#[doc(hidden)]` in libstd/task/spawn.rs and libstd/task/rt.rs since those two are apparently `pub`, as well as in libextra/std.rc since std/extra is `pub`. --- src/libextra/std.rc | 4 ++-- src/libstd/num/cmath.rs | 2 -- src/libstd/stackwalk.rs | 2 -- src/libstd/task/local_data_priv.rs | 2 -- src/libstd/task/mod.rs | 1 - src/libstd/task/rt.rs | 2 +- src/libstd/task/spawn.rs | 2 +- src/libstd/unicode.rs | 2 -- 8 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/libextra/std.rc b/src/libextra/std.rc index a23a5476342..6166e65f4f7 100644 --- a/src/libextra/std.rc +++ b/src/libextra/std.rc @@ -123,7 +123,7 @@ pub mod serialize; // A curious inner-module that's not exported that contains the binding // 'extra' so that macro-expanded references to std::serialize and such // can be resolved within libextra. -#[doc(hidden)] // FIXME #3538 +#[doc(hidden)] pub mod std { pub use serialize; pub use test; @@ -134,7 +134,7 @@ pub mod std { pub use core::cmp; pub use core::sys; } -#[doc(hidden)] // FIXME #3538 +#[doc(hidden)] pub mod extra { pub use serialize; pub use test; diff --git a/src/libstd/num/cmath.rs b/src/libstd/num/cmath.rs index a80703fafa3..9626224916b 100644 --- a/src/libstd/num/cmath.rs +++ b/src/libstd/num/cmath.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[doc(hidden)]; // FIXME #3538 - // function names are almost identical to C's libmath, a few have been // renamed, grep for "rename:" diff --git a/src/libstd/stackwalk.rs b/src/libstd/stackwalk.rs index 784656718d0..a22599e9fc6 100644 --- a/src/libstd/stackwalk.rs +++ b/src/libstd/stackwalk.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[doc(hidden)]; // FIXME #3538 - use cast::transmute; use unstable::intrinsics; diff --git a/src/libstd/task/local_data_priv.rs b/src/libstd/task/local_data_priv.rs index 2f97eaacf4b..d3757ea3f4f 100644 --- a/src/libstd/task/local_data_priv.rs +++ b/src/libstd/task/local_data_priv.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[doc(hidden)]; // FIXME #3538 - use cast; use cmp::Eq; use libc; diff --git a/src/libstd/task/mod.rs b/src/libstd/task/mod.rs index 490a69248ee..f24d2327358 100644 --- a/src/libstd/task/mod.rs +++ b/src/libstd/task/mod.rs @@ -195,7 +195,6 @@ pub fn task() -> TaskBuilder { } } -#[doc(hidden)] // FIXME #3538 priv impl TaskBuilder { fn consume(&mut self) -> TaskBuilder { if self.consumed { diff --git a/src/libstd/task/rt.rs b/src/libstd/task/rt.rs index 760812252bc..4860ab36f77 100644 --- a/src/libstd/task/rt.rs +++ b/src/libstd/task/rt.rs @@ -14,7 +14,7 @@ The task interface to the runtime */ -#[doc(hidden)]; // FIXME #3538 +#[doc(hidden)]; use libc; diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs index 81e5af5caab..5941221821a 100644 --- a/src/libstd/task/spawn.rs +++ b/src/libstd/task/spawn.rs @@ -70,7 +70,7 @@ * ****************************************************************************/ -#[doc(hidden)]; // FIXME #3538 +#[doc(hidden)]; use cast::transmute; use cast; diff --git a/src/libstd/unicode.rs b/src/libstd/unicode.rs index d6e2c5eee6a..ce584c0f1ba 100644 --- a/src/libstd/unicode.rs +++ b/src/libstd/unicode.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[doc(hidden)]; // FIXME #3538 - // The following code was generated by "src/etc/unicode.py" pub mod general_category {