about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-21 00:04:25 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-21 09:27:36 -0800
commit1dc5e6312fd13bd30fb93f7138845532fbdfe8cf (patch)
tree34749c133b759d1af0f807d34d7f380a3a8b84c0 /src/liballoc
parent6495c27ee6b1aee816dd8eee36c9e60a87ba03c7 (diff)
parent92ccc073e1a5a68fada24b5b3cb47b65b5ff1c61 (diff)
downloadrust-1dc5e6312fd13bd30fb93f7138845532fbdfe8cf.tar.gz
rust-1dc5e6312fd13bd30fb93f7138845532fbdfe8cf.zip
rollup merge of #20070: aturon/stab-2-clone
This patch marks `clone` stable, as well as the `Clone` trait, but
leaves `clone_from` unstable. The latter will be decided by the beta.

The patch also marks most manual implementations of `Clone` as stable,
except where the APIs are otherwise deprecated or where there is
uncertainty about providing `Clone`.

r? @alexcrichton
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs2
-rw-r--r--src/liballoc/boxed.rs2
-rw-r--r--src/liballoc/rc.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index 32d9097c45e..271cab393c4 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -197,7 +197,7 @@ pub fn weak_count<T>(this: &Arc<T>) -> uint { this.inner().weak.load(atomic::Seq
 #[experimental]
 pub fn strong_count<T>(this: &Arc<T>) -> uint { this.inner().strong.load(atomic::SeqCst) }
 
-#[unstable = "waiting on stability of Clone"]
+#[stable]
 impl<T> Clone for Arc<T> {
     /// Makes a clone of the `Arc<T>`.
     ///
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index ea7b32ace49..5fd234192c5 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -58,7 +58,7 @@ impl<T> Default for Box<[T]> {
     fn default() -> Box<[T]> { box [] }
 }
 
-#[unstable]
+#[stable]
 impl<T: Clone> Clone for Box<T> {
     /// Returns a copy of the owned box.
     #[inline]
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 2ee4483a919..dfa55848c90 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -410,7 +410,7 @@ impl<T> Drop for Rc<T> {
     }
 }
 
-#[unstable = "Clone is unstable."]
+#[stable]
 impl<T> Clone for Rc<T> {
     /// Makes a clone of the `Rc<T>`.
     ///