Skip to content

Commit 94ba2dc

Browse files
committed
---
yaml --- r: 192109 b: refs/heads/snap-stage3 c: 123b5c1 h: refs/heads/master i: 192107: 98b8dd5 v: v3
1 parent 1944694 commit 94ba2dc

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 809a554fca2d0ebc2ba50077016fe282a4064752
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 018eeb76f0e7384f760afa2a97a07110eef05145
4+
refs/heads/snap-stage3: 123b5c124e12ba08bd351c414753902aae9eb045
55
refs/heads/try: ce76bff75603a754d092456285ff455eb871633d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libstd/sync/mpsc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ unsafe impl<T: Send> Send for Sender<T> { }
372372
/// The sending-half of Rust's synchronous channel type. This half can only be
373373
/// owned by one task, but it can be cloned to send to other tasks.
374374
#[stable(feature = "rust1", since = "1.0.0")]
375-
pub struct SyncSender<T> {
375+
pub struct SyncSender<T: Send> {
376376
inner: Arc<UnsafeCell<sync::Packet<T>>>,
377377
}
378378

branches/snap-stage3/src/libstd/sync/mpsc/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use sync::mpsc::blocking::{self, WaitToken, SignalToken};
4747
use sync::mpsc::select::StartResult::{self, Installed, Abort};
4848
use sync::{Mutex, MutexGuard};
4949

50-
pub struct Packet<T> {
50+
pub struct Packet<T: Send> {
5151
/// Only field outside of the mutex. Just done for kicks, but mainly because
5252
/// the other shared channel already had the code implemented
5353
channels: AtomicUsize,

0 commit comments

Comments
 (0)