about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-18 19:13:32 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-18 19:13:32 -0800
commit1b42e890bf99d37a9e6447912c75c5b5e4695c4e (patch)
tree38451358ee53751e437f0bbb9ca29ab17558dc81 /src/libstd/lib.rs
parentf9a48492a82f805aa40d8b6fea290badbab0d1b1 (diff)
downloadrust-1b42e890bf99d37a9e6447912c75c5b5e4695c4e.tar.gz
rust-1b42e890bf99d37a9e6447912c75c5b5e4695c4e.zip
std: Remove public bool,tuple,unit modules
This commit modifies rustdoc to not require these empty modules to be public in
the standard library. The modules still remain as a location to attach
documentation to, but the modules themselves are now private (don't have to
commit to an API). The documentation for the standard library now shows all of
the primitive types on the main index page.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index e99aba9b673..d34fcc9011b 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -137,7 +137,6 @@ extern crate rustrt;
 // NB: These reexports are in the order they should be listed in rustdoc
 
 pub use core::any;
-pub use core::bool;
 pub use core::borrow;
 pub use core::cell;
 pub use core::clone;
@@ -152,10 +151,6 @@ pub use core::mem;
 pub use core::ptr;
 pub use core::raw;
 pub use core::simd;
-pub use core::tuple;
-// FIXME #15320: primitive documentation needs top-level modules, this
-// should be `std::tuple::unit`.
-pub use core::unit;
 pub use core::result;
 pub use core::option;
 
@@ -246,6 +241,12 @@ pub mod comm;
 pub mod rt;
 mod failure;
 
+// Documentation for primitive types
+
+mod bool;
+mod unit;
+mod tuple;
+
 // A curious inner-module that's not exported that contains the binding
 // 'std' so that macro-expanded references to std::error and such
 // can be resolved within libstd.