rust/library
bors ec21d7ea3c Auto merge of #97924 - cuviper:unguarded-poison, r=Mark-Simulacrum
Avoid `thread::panicking()` in non-poisoning methods of `Mutex` and `RwLock`

`Mutex::lock()` and `RwLock::write()` are poison-guarded against panics,
in that they set the poison flag if a panic occurs while they're locked.
But if we're already in a panic (`thread::panicking()`), they leave the
poison flag alone.

That check is a bit of a waste for methods that never set the poison
flag though, namely `get_mut()`, `into_inner()`, and `RwLock::read()`.
These use-cases are now split to avoid that unnecessary call.
2022-06-18 15:18:50 +00:00
..
alloc Auto merge of #98004 - paolobarbolini:vecdeque-extend-trustedlen, r=the8472 2022-06-18 12:54:01 +00:00
backtrace@4e5a3f7292
core Expose iter::ByRefSized as unstable feature and use it 2022-06-18 00:03:54 +02:00
panic_abort
panic_unwind Add underscores to rust_eh_personality arguments to mark them as unused 2022-06-09 09:50:26 -07:00
portable-simd
proc_macro review fixups 2022-06-17 22:10:07 -04:00
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #97924 - cuviper:unguarded-poison, r=Mark-Simulacrum 2022-06-18 15:18:50 +00:00
stdarch@28335054b1
test
unwind Stabilize the bundle native library modifier 2022-06-09 23:12:58 +04:00