diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-21 13:34:33 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-24 22:27:23 +0100 |
| commit | 290c8de0a6f233b1d30c8a97cb41614fce989d30 (patch) | |
| tree | cfc5e7d1858bfda2b4ce58677dcb1602fc30d000 /src/libstd/thread/mod.rs | |
| parent | 5f57fd591d890cbf9cfc94123071c1a30d809b9e (diff) | |
| download | rust-290c8de0a6f233b1d30c8a97cb41614fce989d30.tar.gz rust-290c8de0a6f233b1d30c8a97cb41614fce989d30.zip | |
Added `T:Send` bound to `JoinGuard<T>` to avoid specialized `Drop` impl.
Diffstat (limited to 'src/libstd/thread/mod.rs')
| -rw-r--r-- | src/libstd/thread/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 57baeb1fb74..27b50fc9aaa 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -698,7 +698,7 @@ impl Drop for JoinHandle { /// permission. #[must_use = "thread will be immediately joined if `JoinGuard` is not used"] #[stable(feature = "rust1", since = "1.0.0")] -pub struct JoinGuard<'a, T: 'a> { +pub struct JoinGuard<'a, T: Send + 'a> { inner: JoinInner<T>, _marker: PhantomData<&'a T>, } |
