From 8eb655b1e6235c7524aaedefaaae4a6e7bcbd508 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 23 Feb 2015 19:34:25 +0530 Subject: import boxed for alloc/rc.rs (fixup #22696) --- src/liballoc/rc.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 5b3d7c9ea90..f57286bbf11 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -143,8 +143,10 @@ //! ``` #![stable(feature = "rust1", since = "1.0.0")] - +#[cfg(not(test))] use boxed; +#[cfg(test)] +use std::boxed; use core::cell::Cell; use core::clone::Clone; use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering}; -- cgit 1.4.1-3-g733a5