Skip to content

Commit e54f01e

Browse files
bors[bot]taiki-e
andauthored
Merge #912
912: Add #[must_use] to ScopedThreadBuilder r=taiki-e a=taiki-e Co-authored-by: Taiki Endo <[email protected]>
2 parents f88cf68 + 441e7e1 commit e54f01e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crossbeam-utils/src/thread.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ impl fmt::Debug for Scope<'_> {
313313
/// [`io::Result`]: std::io::Result
314314
/// [naming-threads]: std::thread#naming-threads
315315
/// [stack-size]: std::thread#stack-size
316+
#[must_use = "must eventually spawn the thread"]
316317
#[derive(Debug)]
317318
pub struct ScopedThreadBuilder<'scope, 'env> {
318319
scope: &'scope Scope<'env>,

0 commit comments

Comments
 (0)