about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-21 13:33:12 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-24 22:27:23 +0100
commit5f57fd591d890cbf9cfc94123071c1a30d809b9e (patch)
tree095394231f10b8b6ee758d1e5f1e71316f1e8b56 /src/libstd/sync
parent123b5c124e12ba08bd351c414753902aae9eb045 (diff)
downloadrust-5f57fd591d890cbf9cfc94123071c1a30d809b9e.tar.gz
rust-5f57fd591d890cbf9cfc94123071c1a30d809b9e.zip
Added `T:Send` bound to `Queue<T>` to avoid specialized `Drop` impl.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mpsc/spsc_queue.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs
index 3fb13739aa7..cd6d1ee05c7 100644
--- a/src/libstd/sync/mpsc/spsc_queue.rs
+++ b/src/libstd/sync/mpsc/spsc_queue.rs
@@ -57,7 +57,7 @@ struct Node<T> {
 /// but it can be safely shared in an Arc if it is guaranteed that there
 /// is only one popper and one pusher touching the queue at any one point in
 /// time.
-pub struct Queue<T> {
+pub struct Queue<T: Send> {
     // consumer fields
     tail: UnsafeCell<*mut Node<T>>, // where to pop from
     tail_prev: AtomicPtr<Node<T>>, // where to pop from