Skip to content

Commit 290c8de

Browse files
committed
Added T:Send bound to JoinGuard<T> to avoid specialized Drop impl.
1 parent 5f57fd5 commit 290c8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/thread/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ impl Drop for JoinHandle {
698698
/// permission.
699699
#[must_use = "thread will be immediately joined if `JoinGuard` is not used"]
700700
#[stable(feature = "rust1", since = "1.0.0")]
701-
pub struct JoinGuard<'a, T: 'a> {
701+
pub struct JoinGuard<'a, T: Send + 'a> {
702702
inner: JoinInner<T>,
703703
_marker: PhantomData<&'a T>,
704704
}

0 commit comments

Comments
 (0)