Skip to content

Commit

Permalink
Added T:Send bound to Queue<T> to avoid specialized Drop impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Mar 24, 2015
1 parent 123b5c1 commit 5f57fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sync/mpsc/spsc_queue.rs
Expand Up @@ -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
Expand Down

0 comments on commit 5f57fd5

Please sign in to comment.