about summary refs log tree commit diff
path: root/library/std/src/thread/local/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/thread/local/tests.rs')
-rw-r--r--library/std/src/thread/local/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/local/tests.rs b/library/std/src/thread/local/tests.rs
index f33d6129619..1df1ca758c0 100644
--- a/library/std/src/thread/local/tests.rs
+++ b/library/std/src/thread/local/tests.rs
@@ -297,7 +297,7 @@ fn join_orders_after_tls_destructors() {
             .unwrap();
 
         loop {
-            match SYNC_STATE.compare_exchange_weak(
+            match SYNC_STATE.compare_exchange(
                 THREAD1_WAITING,
                 MAIN_THREAD_RENDEZVOUS,
                 Ordering::SeqCst,