diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-12-20 00:35:06 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-12-20 00:37:44 -0800 |
| commit | 92ccc073e1a5a68fada24b5b3cb47b65b5ff1c61 (patch) | |
| tree | 4992a05d77d7c24af27d83d6a47c417db45a28f7 /src/liballoc | |
| parent | 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70 (diff) | |
| download | rust-92ccc073e1a5a68fada24b5b3cb47b65b5ff1c61.tar.gz rust-92ccc073e1a5a68fada24b5b3cb47b65b5ff1c61.zip | |
Stabilize 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`.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/boxed.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index e909947ab08..c3bd5c4157c 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -132,7 +132,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> { /// Duplicate an atomically reference counted wrapper. /// diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 879a8cc6951..f0c96196b78 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -57,7 +57,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 0257c640d3c..b22c366e29d 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -413,7 +413,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>`. /// |
