Skip to content

Commit 1138cca

Browse files
Manishearthalexcrichton
authored andcommitted
import boxed for alloc/rc.rs (fixup #22696)
1 parent 63ace25 commit 1138cca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/liballoc/rc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@
143143
//! ```
144144
145145
#![stable(feature = "rust1", since = "1.0.0")]
146-
146+
#[cfg(not(test))]
147147
use boxed;
148+
#[cfg(test)]
149+
use std::boxed;
148150
use core::cell::Cell;
149151
use core::clone::Clone;
150152
use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering};

0 commit comments

Comments
 (0)