diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-21 00:04:25 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-21 09:27:36 -0800 |
| commit | 1dc5e6312fd13bd30fb93f7138845532fbdfe8cf (patch) | |
| tree | 34749c133b759d1af0f807d34d7f380a3a8b84c0 /src/libstd | |
| parent | 6495c27ee6b1aee816dd8eee36c9e60a87ba03c7 (diff) | |
| parent | 92ccc073e1a5a68fada24b5b3cb47b65b5ff1c61 (diff) | |
| download | rust-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/libstd')
| -rw-r--r-- | src/libstd/comm/mod.rs | 4 | ||||
| -rw-r--r-- | src/libstd/io/comm_adapters.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs index 9043cb8c7d6..55f5662dbd8 100644 --- a/src/libstd/comm/mod.rs +++ b/src/libstd/comm/mod.rs @@ -628,7 +628,7 @@ impl<T: Send> Sender<T> { } } -#[unstable] +#[stable] impl<T: Send> Clone for Sender<T> { fn clone(&self) -> Sender<T> { let (packet, sleeper, guard) = match *unsafe { self.inner() } { @@ -756,7 +756,7 @@ impl<T: Send> SyncSender<T> { } } -#[unstable] +#[stable] impl<T: Send> Clone for SyncSender<T> { fn clone(&self) -> SyncSender<T> { unsafe { (*self.inner.get()).clone_chan(); } diff --git a/src/libstd/io/comm_adapters.rs b/src/libstd/io/comm_adapters.rs index e865bf42bd0..3a18b0dc1b5 100644 --- a/src/libstd/io/comm_adapters.rs +++ b/src/libstd/io/comm_adapters.rs @@ -132,6 +132,7 @@ impl ChanWriter { } } +#[stable] impl Clone for ChanWriter { fn clone(&self) -> ChanWriter { ChanWriter { tx: self.tx.clone() } |
