From 7b71c4c0d9476da06afb576bb50300ff7eccc474 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 16 Feb 2022 07:19:44 +0800 Subject: [PATCH] Fix broken nightly build due to aarch64 SIMD macros (#30) Ref: https://github.com/rust-lang/rust/pull/93414 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3f7c1f1..f8ae620 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,7 +52,7 @@ pub fn crc32c_append(crc: u32, data: &[u8]) -> u32 { #[cfg(all(target_arch = "aarch64", nightly))] { - if is_aarch64_feature_detected!("crc") { + if std::arch::is_aarch64_feature_detected!("crc") { return unsafe { hw_aarch64::crc32c(crc, data) }; } }