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 eabc56e commit e2a73cfCopy full SHA for e2a73cf
crossbeam-utils/tests/atomic_cell.rs
@@ -35,11 +35,7 @@ fn is_lock_free() {
35
// of `AtomicU64` is `8`, so `AtomicCell<u64>` is not lock-free.
36
assert_eq!(
37
AtomicCell::<u64>::is_lock_free(),
38
- cfg!(not(crossbeam_no_atomic_64))
39
- && cfg!(any(
40
- target_pointer_width = "64",
41
- target_pointer_width = "128"
42
- ))
+ cfg!(not(crossbeam_no_atomic_64)) && std::mem::align_of::<u64>() == 8
43
);
44
assert_eq!(mem::size_of::<U64Align8>(), 8);
45
assert_eq!(mem::align_of::<U64Align8>(), 8);
0 commit comments