Skip to content

Commit 5f57fd5

Browse files
committed
Added T:Send bound to Queue<T> to avoid specialized Drop impl.
1 parent 123b5c1 commit 5f57fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync/mpsc/spsc_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct Node<T> {
5757
/// but it can be safely shared in an Arc if it is guaranteed that there
5858
/// is only one popper and one pusher touching the queue at any one point in
5959
/// time.
60-
pub struct Queue<T> {
60+
pub struct Queue<T: Send> {
6161
// consumer fields
6262
tail: UnsafeCell<*mut Node<T>>, // where to pop from
6363
tail_prev: AtomicPtr<Node<T>>, // where to pop from

0 commit comments

Comments
 (0)