From 6d0c76ea1b5021ec526421825a4c62b467c5b1e2 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Sun, 29 May 2022 22:53:57 +0100 Subject: [PATCH] Specify only perfectly overlapping accesses can race --- tests/run-pass/weak_memory/extra_cpp_unsafe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-pass/weak_memory/extra_cpp_unsafe.rs b/tests/run-pass/weak_memory/extra_cpp_unsafe.rs index 478e436e59d..d77a090e6e4 100644 --- a/tests/run-pass/weak_memory/extra_cpp_unsafe.rs +++ b/tests/run-pass/weak_memory/extra_cpp_unsafe.rs @@ -18,7 +18,7 @@ fn static_atomic(val: u32) -> &'static AtomicU32 { ret } -// We allow non-atomic and atomic reads to race +// We allow perfectly overlapping non-atomic and atomic reads to race fn racing_mixed_atomicity_read() { let x = static_atomic(0); x.store(42, Relaxed);