Added T:Send bound to JoinGuard<T> to avoid specialized Drop impl.

This commit is contained in:
Felix S. Klock II 2015-03-21 13:34:33 +01:00
parent 5f57fd591d
commit 290c8de0a6

View file

@ -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>,
}