about summary refs log tree commit diff
path: root/src/libstd/comm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-12-19 16:02:31 +0000
committerbors <bors@rust-lang.org>2014-12-19 16:02:31 +0000
commit95c2ed31aeb66b2662933200dbfd661a573b1f49 (patch)
tree3e397ee769c09211083f8aa12377e41104575f7f /src/libstd/comm
parentbd90b936d73c0ea2c261cd8e7b9c43764cb2da05 (diff)
parentf975b10310b2f38a5ac1e50f30778b85ed963849 (diff)
auto merge of #19867 : japaric/rust/deriving-copy, r=acrichto
r? @alexcrichton 
Diffstat (limited to 'src/libstd/comm')
-rw-r--r--src/libstd/comm/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs
index 8f945fec4d5..9043cb8c7d6 100644
--- a/src/libstd/comm/mod.rs
+++ b/src/libstd/comm/mod.rs
@@ -391,7 +391,7 @@ pub struct SyncSender<T> {
 
 /// This enumeration is the list of the possible reasons that try_recv could not
 /// return data when called.
-#[deriving(PartialEq, Clone, Show)]
+#[deriving(PartialEq, Clone, Copy, Show)]
 #[experimental = "this is likely to be removed in changing try_recv()"]
 pub enum TryRecvError {
     /// This channel is currently empty, but the sender(s) have not yet
@@ -402,8 +402,6 @@ pub enum TryRecvError {
     Disconnected,
 }
 
-impl Copy for TryRecvError {}
-
 /// This enumeration is the list of the possible error outcomes for the
 /// `SyncSender::try_send` method.
 #[deriving(PartialEq, Clone, Show)]