From 650358fa00dc6b05debf3b73940f8ab7548247b1 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 11 Dec 2022 15:55:19 -0800 Subject: [PATCH] Replace obsolete comment about target_has_atomic support --- serde/build.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/serde/build.rs b/serde/build.rs index 1559dfdb1..ee0a3d826 100644 --- a/serde/build.rs +++ b/serde/build.rs @@ -92,11 +92,10 @@ fn main() { println!("cargo:rustc-cfg=no_relaxed_trait_bounds"); } - // Whitelist of archs that support std::sync::atomic module. Ideally we - // would use #[cfg(target_has_atomic = "...")] but it is not stable yet. - // Instead this is based on rustc's compiler/rustc_target/src/spec/*.rs. if minor < 60 { println!("cargo:rustc-cfg=no_target_has_atomic"); + // Allowlist of archs that support std::sync::atomic module. This is + // based on rustc's compiler/rustc_target/src/spec/*.rs. let has_atomic64 = target.starts_with("x86_64") || target.starts_with("i686") || target.starts_with("aarch64")