rust/library/std
bors ddc7fd9837 Auto merge of #100579 - joboet:sync_mutex_everywhere, r=thomcc
std: use `sync::Mutex` for internal statics

Since `sync::Mutex` is now `const`-constructible, it can be used for internal statics, removing the need for `sys_common::StaticMutex`. This adds some extra allocations on platforms which need to box their mutexes (currently SGX and some UNIX), but these will become unnecessary with the lock improvements tracked in #93740.

I changed the program argument implementation on Hermit, it does not need `Mutex` but can use atomics like some UNIX systems (ping `@mkroening` `@stlankes).`
2022-10-15 22:49:30 +00:00
..
benches
primitive_docs
src Auto merge of #100579 - joboet:sync_mutex_everywhere, r=thomcc 2022-10-15 22:49:30 +00:00
tests Sort target features alphabetically 2022-10-14 22:01:18 +02:00
build.rs
Cargo.toml Update stdarch 2022-09-15 13:05:28 -04:00