Skip to content

Commit b79bbbb

Browse files
committed
---
yaml --- r: 194403 b: refs/heads/tmp c: 1249e60 h: refs/heads/master i: 194401: ed2ba03 194399: 4526e0c v: v3
1 parent 88171ad commit b79bbbb

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
@@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: a3b13610c5b93d9ada072471a001a5613df6a960
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 26a79e3c204496f55b8c6ff9db741672554f1705
37+
refs/heads/tmp: 1249e6089180211c18fdc381a464274ec95edb25
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 28a0b25f424090255966273994748a9f9901059f
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

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