]> git.lizzy.rs Git - rust.git/commit
Auto merge of #100576 - joboet:movable_const_remutex, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 4 Sep 2022 22:53:58 +0000 (22:53 +0000)
committerbors <bors@rust-lang.org>
Sun, 4 Sep 2022 22:53:58 +0000 (22:53 +0000)
commite7cdd4c0909b62f2ee0368fd10e6e244f2af44b4
tree33b83e9624645f05a3b64c1c333ba65697d82a1e
parent289279de116707f28cf9c18e4bbb8c6ec84ad75b
parent8c37fdf2d702ff1fc805f1bbc5de634e1101a4da
Auto merge of #100576 - joboet:movable_const_remutex, r=Mark-Simulacrum

Make `ReentrantMutex` movable and `const`

As `MovableMutex` is now `const`, it can be used to simplify the implementation and interface of the internal reentrant mutex type. Consequently, the standard error stream does not need to be wrapped in `OnceLock` and `OnceLock::get_or_init_pin()` can be removed.
library/std/src/io/stdio.rs
library/std/src/sys/unix/locks/fuchsia_mutex.rs
library/std/src/sys/unix/locks/futex_mutex.rs