about summary refs log tree commit diff
path: root/tests/codegen-llvm/merge-functions.rs
diff options
context:
space:
mode:
authorAlisa Sireneva <me@purplesyringa.moe>2025-07-19 18:18:01 +0300
committerAlisa Sireneva <me@purplesyringa.moe>2025-07-19 19:25:59 +0300
commit5b2c61edbe508163ad11cde0f35278417d7c26b3 (patch)
treeb5a6b8c905fc8fe844cc52f0f34839accf0c862b /tests/codegen-llvm/merge-functions.rs
parent83825dd277503edf5d7eda6be8b5fb9896f343f5 (diff)
downloadrust-5b2c61edbe508163ad11cde0f35278417d7c26b3.tar.gz
rust-5b2c61edbe508163ad11cde0f35278417d7c26b3.zip
Document guarantees of poisoning
This mostly documents the current behavior of `Mutex` and `RwLock` as
imperfect. It's unlikely that the situation improves significantly in
the future, and even if it does, the rules will probably be more
complicated than "poisoning is completely reliable", so this is a
conservative guarantee.

We also explicitly specify that `OnceLock` never poisons, even though it
has an API similar to mutexes.
Diffstat (limited to 'tests/codegen-llvm/merge-functions.rs')
0 files changed, 0 insertions, 0 deletions