]> git.lizzy.rs Git - rust.git/commit
Change MutexGuard and RwLockWriteGuard to store &mut T not &UnsafeCell<T>
authorJonathan Reem <jonathan.reem@gmail.com>
Sat, 30 Jan 2016 07:36:38 +0000 (23:36 -0800)
committerJonathan Reem <jonathan.reem@gmail.com>
Sat, 30 Jan 2016 21:29:19 +0000 (13:29 -0800)
commitbf60078b48649ef4d3a9cb0034208672b82e9b51
treef415010ec54bdbc0538ab52852d767d4c3f82a0c
parenta4343e99c0e38bcb31386d48a6682e3a1896a0cc
Change MutexGuard and RwLockWriteGuard to store &mut T not &UnsafeCell<T>

This centralizes the unsafety of converting from UnsafeCell<T> to &mut T.
src/libstd/sync/mutex.rs
src/libstd/sync/rwlock.rs