about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2015-07-27 18:11:43 +0300
committerEduard Burtescu <edy.burt@gmail.com>2015-07-27 18:11:43 +0300
commitcc09b1a08cc61dd3f485308adf3a5a252c718861 (patch)
tree0e7971effb8281073ef571c30fb86b2f00bd7829 /src/liballoc
parent5720f7055ac13cf616eb3a9a0b187440b56817d5 (diff)
downloadrust-cc09b1a08cc61dd3f485308adf3a5a252c718861.tar.gz
rust-cc09b1a08cc61dd3f485308adf3a5a252c718861.zip
Turn on `box(PLACE) expr` deprecation warning post-snapshot.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index acf22094233..a54b3420353 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -297,7 +297,7 @@ impl<T: Clone> Clone for Box<T> {
     /// let y = x.clone();
     /// ```
     #[inline]
-    fn clone(&self) -> Box<T> { box (HEAP) {(**self).clone()} }
+    fn clone(&self) -> Box<T> { box {(**self).clone()} }
     /// Copies `source`'s contents into `self` without creating a new allocation.
     ///
     /// # Examples