]> git.lizzy.rs Git - rust.git/commit
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)
commit617039bff0decea56b6698497b589671b0371507
tree87e9400d10662277520a45b4ff42bfc62a4da549
parent4bbb1c5c9960f221259f6d3b1906999361c9258c
parentfbec232df1de37fce9badfe56c4a1d7c0050f3d5
Auto merge of #34756 - habnabit:mutex-refunwindsafe, r=alexcrichton

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.