]> git.lizzy.rs Git - rust.git/commit
std: Clean out deprecated APIs
authorAlex Crichton <alex@alexcrichton.com>
Thu, 7 Jul 2016 18:46:09 +0000 (11:46 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 12 Jul 2016 19:51:13 +0000 (12:51 -0700)
commita7220d9046e292869dded2c478544850c220c7de
tree3f67e79f8fd97c84d5156bae36298ed9f54c1639
parent31e9ed5d6cf567557d2219add7afedae93aaf2a5
std: Clean out deprecated APIs

This primarily removes a lot of `sync::Static*` APIs and rejiggers the
associated implementations. While doing this it was discovered that the
`is_poisoned` method can actually result in a data race for the Mutex/RwLock
primitives, so the inner `Cell<bool>` was changed to an `AtomicBool` to prevent
the associated data race. Otherwise the usage/gurantees should be the same
they were before.
src/libcore/iter/mod.rs
src/libstd/sync/condvar.rs
src/libstd/sync/mod.rs
src/libstd/sync/mutex.rs
src/libstd/sync/rwlock.rs
src/libstd/sys/common/poison.rs
src/libstd/sys/windows/backtrace.rs
src/test/debuginfo/constant-debug-locs.rs
src/test/run-pass/std-sync-right-kind-impls.rs