about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-07-28 16:22:05 -0700
committerBrian Anderson <banderson@mozilla.com>2015-07-28 16:22:05 -0700
commit64641985087e1aadfa2fcc1c849953b827a9fcd1 (patch)
treef137f5dd81fad2d82706967a786025a2e757643c /src/libstd/lib.rs
parentfddfd089b75379f1d25f81541572d69a93f95c4f (diff)
downloadrust-64641985087e1aadfa2fcc1c849953b827a9fcd1.tar.gz
rust-64641985087e1aadfa2fcc1c849953b827a9fcd1.zip
std: Remove some old #[cfg(test) hacks
Since most lang items are actually defined in core, these hack reexports don't actually
do anything useful.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 1e82a03f286..710c3b8075c 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -179,28 +179,23 @@ extern crate libc;
 
 #[macro_use] #[no_link] extern crate rustc_bitflags;
 
-// Make std testable by not duplicating lang items. See #2912
+// Make std testable by not duplicating lang items and other globals. See #2912
 #[cfg(test)] extern crate std as realstd;
-#[cfg(test)] pub use realstd::marker;
-#[cfg(test)] pub use realstd::ops;
-#[cfg(test)] pub use realstd::cmp;
-#[cfg(test)] pub use realstd::boxed;
-
 
 // NB: These reexports are in the order they should be listed in rustdoc
 
 pub use core::any;
 pub use core::cell;
 pub use core::clone;
-#[cfg(not(test))] pub use core::cmp;
+pub use core::cmp;
 pub use core::convert;
 pub use core::default;
 pub use core::hash;
 pub use core::intrinsics;
 pub use core::iter;
-#[cfg(not(test))] pub use core::marker;
+pub use core::marker;
 pub use core::mem;
-#[cfg(not(test))] pub use core::ops;
+pub use core::ops;
 pub use core::ptr;
 pub use core::raw;
 pub use core::simd;
@@ -208,7 +203,7 @@ pub use core::result;
 pub use core::option;
 pub mod error;
 
-#[cfg(not(test))] pub use alloc::boxed;
+pub use alloc::boxed;
 pub use alloc::rc;
 
 pub use core_collections::borrow;