]> git.lizzy.rs Git - rust.git/commitdiff
import boxed for alloc/rc.rs (fixup #22696)
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 23 Feb 2015 14:04:25 +0000 (19:34 +0530)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 23 Feb 2015 19:43:59 +0000 (11:43 -0800)
src/liballoc/rc.rs

index 5b3d7c9ea902b1f2223eeef86534ae7d7c5f467d..f57286bbf11c9af56ee608e8b9af720ddf00eaa4 100644 (file)
 //! ```
 
 #![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};