From adbd5d7a421e50b1ff4c1d8f1f43a9fd5fb977a3 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 23 Jun 2014 16:34:29 -0700 Subject: core: Add stability attributes to Clone The following are tagged 'unstable' - core::clone - Clone - Clone::clone - impl Clone for Arc - impl Clone for arc::Weak - impl Clone for Rc - impl Clone for rc::Weak - impl Clone for Vec - impl Clone for Cell - impl Clone for RefCell - impl Clone for small tuples The following are tagged 'experimental' - Clone::clone_from - may not provide enough utility - impls for various extern "Rust" fns - may not handle lifetimes correctly See https://github.com/rust-lang/rust/wiki/Meeting-API-review-2014-06-23#clone --- src/liballoc/arc.rs | 2 ++ src/liballoc/owned.rs | 1 + src/liballoc/rc.rs | 2 ++ 3 files changed, 5 insertions(+) (limited to 'src/liballoc') diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index cccd5cb63ef..6af4083edb2 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -110,6 +110,7 @@ impl Arc { } } +#[unstable] impl Clone for Arc { /// Duplicate an atomically reference counted wrapper. /// @@ -236,6 +237,7 @@ impl Weak { } } +#[unstable] impl Clone for Weak { #[inline] fn clone(&self) -> Weak { diff --git a/src/liballoc/owned.rs b/src/liballoc/owned.rs index fa7a8df5035..6f5d3293556 100644 --- a/src/liballoc/owned.rs +++ b/src/liballoc/owned.rs @@ -42,6 +42,7 @@ impl Default for Box { fn default() -> Box { box Default::default() } } +#[unstable] impl Clone for Box { /// Return a copy of the owned box. #[inline] diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index c6e81fa7f7c..a3ca72f1547 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -143,6 +143,7 @@ impl Drop for Rc { } } +#[unstable] impl Clone for Rc { #[inline] fn clone(&self) -> Rc { @@ -224,6 +225,7 @@ impl Drop for Weak { } } +#[unstable] impl Clone for Weak { #[inline] fn clone(&self) -> Weak { -- cgit 1.4.1-3-g733a5