From adf139b36907e99ad8bda85d739ce312c631b9ec Mon Sep 17 00:00:00 2001 From: ty Date: Mon, 2 Dec 2024 18:55:38 +0800 Subject: [PATCH] Enable atomic64 only when target supports AtomicU64 - target_has_atomic was stablized in v1.60.0, https://doc.rust-lang.org/beta/releases.html#version-1600-2022-04-07 --- src/common/concurrent.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/concurrent.rs b/src/common/concurrent.rs index 2f7e6d8e..b1345220 100644 --- a/src/common/concurrent.rs +++ b/src/common/concurrent.rs @@ -12,12 +12,8 @@ pub(crate) mod entry_info; #[cfg(feature = "sync")] pub(crate) mod housekeeper; -// target_has_atomic is more convenient but yet unstable (Rust 1.55) -// https://github.com/rust-lang/rust/issues/32976 -// #[cfg_attr(target_has_atomic = "64", path = "common/time_atomic64.rs")] - #[cfg_attr( - all(feature = "atomic64", feature = "quanta"), + all(feature = "atomic64", feature = "quanta", target_has_atomic = "64"), path = "concurrent/atomic_time/atomic_time.rs" )] #[cfg_attr(