Skip to content

Commit c09369b

Browse files
committed
---
yaml --- r: 192733 b: refs/heads/try c: 1249e60 h: refs/heads/master i: 192731: 8de0756 v: v3
1 parent c4fe234 commit c09369b

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 557d4346a26266d2eb13f6b0adf106b8873b0da1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a923278c6278c63468d74772c58dbf788e88f58c
5-
refs/heads/try: 26a79e3c204496f55b8c6ff9db741672554f1705
5+
refs/heads/try: 1249e6089180211c18fdc381a464274ec95edb25
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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/try/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)