about summary refs log tree commit diff
path: root/library/std/src/sync/mutex/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sync/mutex/tests.rs')
-rw-r--r--library/std/src/sync/mutex/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/mutex/tests.rs b/library/std/src/sync/mutex/tests.rs
index 93900566f11..1786a3c09ff 100644
--- a/library/std/src/sync/mutex/tests.rs
+++ b/library/std/src/sync/mutex/tests.rs
@@ -181,7 +181,7 @@ fn test_mutex_arc_poison() {
     let arc2 = arc.clone();
     let _ = thread::spawn(move || {
         let lock = arc2.lock().unwrap();
-        assert_eq!(*lock, 2);
+        assert_eq!(*lock, 2); // deliberate assertion failure to poison the mutex
     })
     .join();
     assert!(arc.lock().is_err());