Mention target_has_atomic stabilization

This commit is contained in:
David Tolnay 2022-12-11 15:56:31 -08:00
parent 650358fa00
commit 37faaf295e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -92,6 +92,7 @@ fn main() {
println!("cargo:rustc-cfg=no_relaxed_trait_bounds");
}
// Support for #[cfg(target_has_atomic = "...")] stabilized in Rust 1.60.
if minor < 60 {
println!("cargo:rustc-cfg=no_target_has_atomic");
// Allowlist of archs that support std::sync::atomic module. This is