diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-21 13:14:28 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-24 22:27:22 +0100 |
| commit | 0adab507bbb0b04fe389a00af19fc17753b76343 (patch) | |
| tree | 88e0e32469c0d0fd1e0bcd0ffc7c3124e77c4c7d /src/libstd/sys | |
| parent | 5fa4b4c4af14e391d7f16b4968aa25cca7c617c6 (diff) | |
| download | rust-0adab507bbb0b04fe389a00af19fc17753b76343.tar.gz rust-0adab507bbb0b04fe389a00af19fc17753b76343.zip | |
Added `T:Send` bound to `sync::mpsc::Receiver` and `sync::mpsc::Sender`.
This was necessary to avoid specialized `Drop` impls for the two structs.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/common/helper_thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/common/helper_thread.rs b/src/libstd/sys/common/helper_thread.rs index 2a852fbcd57..e8bec66d987 100644 --- a/src/libstd/sys/common/helper_thread.rs +++ b/src/libstd/sys/common/helper_thread.rs @@ -38,7 +38,7 @@ use thread; /// /// The fields of this helper are all public, but they should not be used, this /// is for static initialization. -pub struct Helper<M> { +pub struct Helper<M:Send> { /// Internal lock which protects the remaining fields pub lock: StaticMutex, pub cond: StaticCondvar, |
