diff options
| author | John Kugelman <john@kugelman.name> | 2021-10-11 17:25:47 -0400 |
|---|---|---|
| committer | John Kugelman <john@kugelman.name> | 2021-10-11 17:25:47 -0400 |
| commit | e4c5e86228b2f284577e7e0a115e2c9c9214e573 (patch) | |
| tree | 74556762b0716e2d4c86fefa184e65018e933da3 | |
| parent | 5b210643ebf2485aafdf2494de8cf41941a64e95 (diff) | |
| download | rust-e4c5e86228b2f284577e7e0a115e2c9c9214e573.tar.gz rust-e4c5e86228b2f284577e7e0a115e2c9c9214e573.zip | |
Add #[must_use] to thread::Builder
| -rw-r--r-- | library/std/src/thread/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 7d404aff30e..f141546b646 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -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 { |
