diff options
| author | John Kugelman <john@kugelman.name> | 2021-10-11 13:57:38 -0400 |
|---|---|---|
| committer | John Kugelman <john@kugelman.name> | 2021-10-11 13:57:38 -0400 |
| commit | 06e625f7d582601f5e2ff69ba80f6d3a11632b24 (patch) | |
| tree | d2b9b88fb89cf0f074feeaa191cb9e22a4a9eee5 /library/std/src/thread | |
| parent | 86d6d2b7389fe1b339402c1798edae8b695fc9ef (diff) | |
| download | rust-06e625f7d582601f5e2ff69ba80f6d3a11632b24.tar.gz rust-06e625f7d582601f5e2ff69ba80f6d3a11632b24.zip | |
Add #[must_use] to as_type conversions
Diffstat (limited to 'library/std/src/thread')
| -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..82847d83ad2 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -1031,6 +1031,7 @@ impl ThreadId { /// value is entirely opaque -- only equality testing is stable. Note that /// it is not guaranteed which values new threads will return, and this may /// change across Rust versions. + #[must_use] #[unstable(feature = "thread_id_value", issue = "67939")] pub fn as_u64(&self) -> NonZeroU64 { self.0 |
