about summary refs log tree commit diff
path: root/src/libstd/sync/mpsc/mod.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-21 13:31:58 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-24 22:27:23 +0100
commit123b5c124e12ba08bd351c414753902aae9eb045 (patch)
tree5735e4f6261687ac3d7680a3bdc368cc501dc15d /src/libstd/sync/mpsc/mod.rs
parent018eeb76f0e7384f760afa2a97a07110eef05145 (diff)
downloadrust-123b5c124e12ba08bd351c414753902aae9eb045.tar.gz
rust-123b5c124e12ba08bd351c414753902aae9eb045.zip
Added `T:Send` bound to `Packet<T>` to avoid specialized `Drop` impl.
Diffstat (limited to 'src/libstd/sync/mpsc/mod.rs')
-rw-r--r--src/libstd/sync/mpsc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs
index 48629beafc8..eb421fe55a4 100644
--- a/src/libstd/sync/mpsc/mod.rs
+++ b/src/libstd/sync/mpsc/mod.rs
@@ -372,7 +372,7 @@ unsafe impl<T: Send> Send for Sender<T> { }
 /// The sending-half of Rust's synchronous channel type. This half can only be
 /// owned by one task, but it can be cloned to send to other tasks.
 #[stable(feature = "rust1", since = "1.0.0")]
-pub struct SyncSender<T> {
+pub struct SyncSender<T: Send> {
     inner: Arc<UnsafeCell<sync::Packet<T>>>,
 }