Skip to content

Commit e4c5e86

Browse files
committed
Add #[must_use] to thread::Builder
1 parent 5b21064 commit e4c5e86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/thread/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ pub const fn require_unstable_const_init_thread_local() {}
257257
/// [`unwrap`]: crate::result::Result::unwrap
258258
/// [naming-threads]: ./index.html#naming-threads
259259
/// [stack-size]: ./index.html#stack-size
260+
#[must_use = "must eventually call `spawn()` on Thread builders"]
260261
#[stable(feature = "rust1", since = "1.0.0")]
261262
#[derive(Debug)]
262263
pub struct Builder {

0 commit comments

Comments
 (0)