We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d70c70 + ac6cd90 commit 7f7a3ccCopy full SHA for 7f7a3cc
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