Skip to content

Commit

Permalink
Enable atomic64 only when target supports AtomicU64
Browse files Browse the repository at this point in the history
- target_has_atomic was stablized in v1.60.0, https://doc.rust-lang.org/beta/releases.html#version-1600-2022-04-07
  • Loading branch information
zonyitoo authored Dec 2, 2024
1 parent 120f706 commit adf139b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/common/concurrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit adf139b

Please sign in to comment.