about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/tokenstream.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-02 11:24:22 +0200
committerGitHub <noreply@github.com>2025-08-02 11:24:22 +0200
commitce1961bbfcc71818484d340ea4924f28417657e8 (patch)
tree5aadff984a3ff227c9794f4f0f4aac3bd1c852da /compiler/rustc_ast/src/tokenstream.rs
parent96b3b83299da636fdc14757dc7970e40342f5798 (diff)
parentc1d06cccaed537c799838dc5338dda28bbace52b (diff)
downloadrust-ce1961bbfcc71818484d340ea4924f28417657e8.tar.gz
rust-ce1961bbfcc71818484d340ea4924f28417657e8.zip
Rollup merge of #144185 - purplesyringa:poisoning-wording, r=Amanieu
Document guarantees of poisoning

This mostly documents the current behavior of `Mutex` and `RwLock` (rust-lang/rust#143471) 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.

Fixes rust-lang/rust#143471 by improving documentation.

r? ``@Amanieu``
Diffstat (limited to 'compiler/rustc_ast/src/tokenstream.rs')
0 files changed, 0 insertions, 0 deletions