]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #34756 - habnabit:mutex-refunwindsafe, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 13 Jul 2016 05:43:31 +0000 (22:43 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2016 05:43:31 +0000 (22:43 -0700)
Mutex and RwLock need RefUnwindSafe too

Incomplete, because I don't know what the appropriate stability annotation is here, but this is an attempt to bring the documentation for `std::panic` in line with reality. Right now, it says:

>Types like `&Mutex<T>`, however, are unwind safe because they implement poisoning by default.

But only `Mutex<T>`, not `&Mutex<T>`, is unwind-safe.


Trivial merge