File tree 1 file changed +5
-10
lines changed 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -281,36 +281,31 @@ extern crate libc;
281
281
282
282
#[ macro_use] #[ no_link] extern crate rustc_bitflags;
283
283
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
285
285
#[ 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
-
291
286
292
287
// NB: These reexports are in the order they should be listed in rustdoc
293
288
294
289
pub use core:: any;
295
290
pub use core:: cell;
296
291
pub use core:: clone;
297
- # [ cfg ( not ( test ) ) ] pub use core:: cmp;
292
+ pub use core:: cmp;
298
293
pub use core:: convert;
299
294
pub use core:: default;
300
295
pub use core:: hash;
301
296
pub use core:: intrinsics;
302
297
pub use core:: iter;
303
- # [ cfg ( not ( test ) ) ] pub use core:: marker;
298
+ pub use core:: marker;
304
299
pub use core:: mem;
305
- # [ cfg ( not ( test ) ) ] pub use core:: ops;
300
+ pub use core:: ops;
306
301
pub use core:: ptr;
307
302
pub use core:: raw;
308
303
pub use core:: simd;
309
304
pub use core:: result;
310
305
pub use core:: option;
311
306
pub mod error;
312
307
313
- # [ cfg ( not ( test ) ) ] pub use alloc:: boxed;
308
+ pub use alloc:: boxed;
314
309
pub use alloc:: rc;
315
310
316
311
pub use core_collections:: borrow;
You can’t perform that action at this time.
0 commit comments