about summary refs log tree commit diff
path: root/src/liballoc/boxed.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-17 08:35:22 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-17 11:50:29 -0800
commit3369b33a20001d7ff1871f39389dfb9ed3fbb829 (patch)
tree1b5f283b3d16f4c296669e8d73b9b1a2198554a3 /src/liballoc/boxed.rs
parentcada943f145cf85d2b01b9046dde8ff599670b80 (diff)
parent9021f61ef7979cb146c5786e1c54c6d928cc0483 (diff)
downloadrust-3369b33a20001d7ff1871f39389dfb9ed3fbb829.tar.gz
rust-3369b33a20001d7ff1871f39389dfb9ed3fbb829.zip
rollup merge of #19902: alexcrichton/second-pass-mem
This commit stabilizes the `mem` and `default` modules of std.
Diffstat (limited to 'src/liballoc/boxed.rs')
-rw-r--r--src/liballoc/boxed.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index c6afeb063fb..879a8cc6951 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -45,11 +45,15 @@ pub static HEAP: () = ();
 #[unstable = "custom allocators will add an additional type parameter (with default)"]
 pub struct Box<T>(*mut T);
 
+#[stable]
 impl<T: Default> Default for Box<T> {
+    #[stable]
     fn default() -> Box<T> { box Default::default() }
 }
 
+#[stable]
 impl<T> Default for Box<[T]> {
+    #[stable]
     fn default() -> Box<[T]> { box [] }
 }