Skip to content

Commit 35d9551

Browse files
committed
Rollup merge of rust-lang#27369 - brson:realstd, r=alexcrichton
Since most lang items are actually defined in core, these hack reexports don't actually do anything useful.
2 parents c9a34d2 + 6464198 commit 35d9551

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/libstd/lib.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -281,36 +281,31 @@ extern crate libc;
281281

282282
#[macro_use] #[no_link] extern crate rustc_bitflags;
283283

284-
// Make std testable by not duplicating lang items. See #2912
284+
// Make std testable by not duplicating lang items and other globals. See #2912
285285
#[cfg(test)] extern crate std as realstd;
286-
#[cfg(test)] pub use realstd::marker;
287-
#[cfg(test)] pub use realstd::ops;
288-
#[cfg(test)] pub use realstd::cmp;
289-
#[cfg(test)] pub use realstd::boxed;
290-
291286

292287
// NB: These reexports are in the order they should be listed in rustdoc
293288

294289
pub use core::any;
295290
pub use core::cell;
296291
pub use core::clone;
297-
#[cfg(not(test))] pub use core::cmp;
292+
pub use core::cmp;
298293
pub use core::convert;
299294
pub use core::default;
300295
pub use core::hash;
301296
pub use core::intrinsics;
302297
pub use core::iter;
303-
#[cfg(not(test))] pub use core::marker;
298+
pub use core::marker;
304299
pub use core::mem;
305-
#[cfg(not(test))] pub use core::ops;
300+
pub use core::ops;
306301
pub use core::ptr;
307302
pub use core::raw;
308303
pub use core::simd;
309304
pub use core::result;
310305
pub use core::option;
311306
pub mod error;
312307

313-
#[cfg(not(test))] pub use alloc::boxed;
308+
pub use alloc::boxed;
314309
pub use alloc::rc;
315310

316311
pub use core_collections::borrow;

0 commit comments

Comments
 (0)