Added T:Send
bound to JoinGuard<T>
to avoid specialized Drop
impl.
This commit is contained in:
parent
5f57fd591d
commit
290c8de0a6
@ -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>,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user