summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-25 18:41:22 -0700
committerbors <bors@rust-lang.org>2014-05-25 18:41:22 -0700
commit20a41519fd92c50c44132870a95415159a1d09ea (patch)
tree5618138209ab893c756265bd812e571a266aecb5 /src/libstd/lib.rs
parentdb2ddb1bba9a78b0791266805bdeca9f3fce89fc (diff)
parent009d898a9422ac04c1aa60c0e9aff3abc5fa4672 (diff)
downloadrust-20a41519fd92c50c44132870a95415159a1d09ea.tar.gz
rust-20a41519fd92c50c44132870a95415159a1d09ea.zip
auto merge of #14430 : kballard/rust/squelch_os_warning, r=alexcrichton
Clean up the re-exports of various modules in `std::std`, and remove the
`realstd` stuff from `std::rt::args`.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 1786cc8062e..cf1ebc687a7 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -266,24 +266,21 @@ pub mod rt;
 // can be resolved within libstd.
 #[doc(hidden)]
 mod std {
+    // mods used for deriving
     pub use clone;
     pub use cmp;
-    pub use comm;
-    pub use fmt;
     pub use hash;
-    pub use io;
-    pub use kinds;
-    pub use local_data;
-    pub use option;
-    pub use os;
-    pub use rt;
-    pub use str;
-    pub use to_str;
-    pub use ty;
-    pub use unstable;
-    pub use vec;
 
+    pub use comm; // used for select!()
+    pub use fmt; // used for any formatting strings
+    pub use io; // used for println!()
+    pub use local_data; // used for local_data_key!()
+    pub use option; // used for bitflags!()
+    pub use rt; // used for fail!()
+    pub use vec; // used for vec![]
+
+    // The test runner calls ::std::os::args() but really wants realstd
+    #[cfg(test)] pub use os = realstd::os;
     // The test runner requires std::slice::Vector, so re-export std::slice just for it.
     #[cfg(test)] pub use slice;
-    #[cfg(test)] pub use string;
 }