]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #70240 - brain0:thread_id, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 22 Mar 2020 14:48:37 +0000 (15:48 +0100)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 14:48:37 +0000 (15:48 +0100)
commitc882b10a9f5429ef3264ce9c239f2cd4025294dd
tree6b9f7b3979b92280874fb84332092c6e906cf364
parente58fec0c1cfa6f306940edb20d8d5f7a3a468d6e
parentc8140a88f67cf1fea104b1aaa615af7816984615
Rollup merge of #70240 - brain0:thread_id, r=Mark-Simulacrum

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.