Skip to content

Commit

Permalink
Add #[must_use] to thread::Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
jkugelman committed Oct 11, 2021
1 parent 5b21064 commit e4c5e86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/thread/mod.rs
Expand Up @@ -257,6 +257,7 @@ pub const fn require_unstable_const_init_thread_local() {}
/// [`unwrap`]: crate::result::Result::unwrap
/// [naming-threads]: ./index.html#naming-threads
/// [stack-size]: ./index.html#stack-size
#[must_use = "must eventually call `spawn()` on Thread builders"]
#[stable(feature = "rust1", since = "1.0.0")]
#[derive(Debug)]
pub struct Builder {
Expand Down

0 comments on commit e4c5e86

Please sign in to comment.