Skip to content

Commit cc90f3e

Browse files
committed
---
yaml --- r: 194406 b: refs/heads/tmp c: 123b5c1 h: refs/heads/master v: v3
1 parent bdb4f46 commit cc90f3e

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: 018eeb76f0e7384f760afa2a97a07110eef05145
37+
refs/heads/tmp: 123b5c124e12ba08bd351c414753902aae9eb045
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/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/tmp/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)