We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfea8ec commit ac6cd90Copy full SHA for ac6cd90
src/libstd/thread.rs
@@ -635,7 +635,7 @@ impl Drop for JoinHandle {
635
/// Due to platform restrictions, it is not possible to `Clone` this
636
/// handle: the ability to join a child thread is a uniquely-owned
637
/// permission.
638
-#[must_use]
+#[must_use = "thread will be immediately joined if `JoinGuard` is not used"]
639
#[stable(feature = "rust1", since = "1.0.0")]
640
pub struct JoinGuard<'a, T: 'a> {
641
inner: JoinInner<T>,
0 commit comments