We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8c614 commit c1d06ccCopy full SHA for c1d06cc
library/std/src/sync/poison/mutex.rs
@@ -46,6 +46,9 @@ use crate::sys::sync as sys;
46
/// storing the guard to a [`Cell`] within [`Drop::drop`] and accessing it
47
/// outside, or vice versa, can affect poisoning status in an unexpected way.
48
///
49
+/// - Foreign exceptions do not currently trigger poisoning even in absence of
50
+/// other panics.
51
+///
52
/// While this rarely happens in realistic code, `unsafe` code cannot rely on
53
/// poisoning for soundness, since the behavior of poisoning can depend on
54
/// outside context. Here's an example of **incorrect** use of poisoning:
0 commit comments