Skip to content

Commit 343eff5

Browse files
committed
---
yaml --- r: 194206 b: refs/heads/beta c: 1249e60 h: refs/heads/master v: v3
1 parent e9d0414 commit 343eff5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 26a79e3c204496f55b8c6ff9db741672554f1705
34+
refs/heads/beta: 1249e6089180211c18fdc381a464274ec95edb25
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/src/libstd/sync/mpsc/mpsc_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct Node<T> {
7272
/// The multi-producer single-consumer structure. This is not cloneable, but it
7373
/// may be safely shared so long as it is guaranteed that there is only one
7474
/// popper at a time (many pushers are allowed).
75-
pub struct Queue<T> {
75+
pub struct Queue<T: Send> {
7676
head: AtomicPtr<Node<T>>,
7777
tail: UnsafeCell<*mut Node<T>>,
7878
}

branches/beta/src/libstd/sync/mpsc/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const MAX_STEALS: isize = 5;
4040
#[cfg(not(test))]
4141
const MAX_STEALS: isize = 1 << 20;
4242

43-
pub struct Packet<T> {
43+
pub struct Packet<T: Send> {
4444
queue: mpsc::Queue<T>,
4545
cnt: AtomicIsize, // How many items are on this channel
4646
steals: isize, // How many times has a port received without blocking?

0 commit comments

Comments
 (0)