]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
library/std/src/io/stdio.rs
library/std/src/sys/unix/locks/fuchsia_mutex.rs
library/std/src/sys/unix/locks/futex_mutex.rs

Simple merge