diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-12 09:15:06 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-12 09:15:06 +0530 |
| commit | 7f7a3cc29d83408b5e1e985d2dfee95719b5fdb9 (patch) | |
| tree | 84d90d6584b054f3d77c82b6263f763fc4b19174 | |
| parent | 3d70c7042c4a24e177bd0b134a4b628cb011afd4 (diff) | |
| parent | ac6cd90af1fa784cc9f8ad976e27b6d0a844f211 (diff) | |
| download | rust-7f7a3cc29d83408b5e1e985d2dfee95719b5fdb9.tar.gz rust-7f7a3cc29d83408b5e1e985d2dfee95719b5fdb9.zip | |
Rollup merge of #23296 - shepmaster:explain-why-joinguard-is-must-use, r=alexcrichton
| -rw-r--r-- | src/libstd/thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread.rs b/src/libstd/thread.rs index 7d0df679591..4c7dcc8b9eb 100644 --- a/src/libstd/thread.rs +++ b/src/libstd/thread.rs @@ -635,7 +635,7 @@ impl Drop for JoinHandle { /// Due to platform restrictions, it is not possible to `Clone` this /// handle: the ability to join a child thread is a uniquely-owned /// permission. -#[must_use] +#[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> { inner: JoinInner<T>, |
