]> git.lizzy.rs Git - rust.git/commit
Return NonZeroU64 from ThreadId::as_u64.
authorThomas Bächler <thomas.baechler@gmx.de>
Sat, 21 Mar 2020 18:48:23 +0000 (19:48 +0100)
committerThomas Bächler <thomas.baechler@gmx.de>
Sat, 21 Mar 2020 18:48:23 +0000 (19:48 +0100)
commitc8140a88f67cf1fea104b1aaa615af7816984615
tree04f0a756194d67eec457b152a67d33c3cb725db4
parent98803c182b2ba6ef5dccb6bf501958249295eac0
Return NonZeroU64 from ThreadId::as_u64.

As discussed in #67939, this allows turning Option<ThreadId> into Option<NonZeroU64> which
can then be stored inside an AtomicU64.
src/librustc_data_structures/profiling.rs
src/libstd/thread/mod.rs