Skip to content

Commit

Permalink
CPU: ARM: Remove bogus static assertion about 32-bit ARM.
Browse files Browse the repository at this point in the history
It is possible that a 32-bit ARM target could have static crypto CPU features.
  • Loading branch information
briansmith committed Oct 1, 2023
1 parent 301f316 commit bad63fb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cpu/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,6 @@ prefixed_export! {
// target_feature="sha3"
// ```
#[allow(clippy::assertions_on_constants)]
const _NON_AARCH64_HAS_ZERO_ARMCAP_STATIC: () =
assert!((ARMCAP_STATIC == 0) || cfg!(target_arch = "aarch64"));
#[allow(clippy::assertions_on_constants)]
const _AARCH64_HAS_NEON: () =
assert!(((ARMCAP_STATIC & NEON.mask) == NEON.mask) || !cfg!(target_arch = "aarch64"));
#[allow(clippy::assertions_on_constants)]
Expand Down

0 comments on commit bad63fb

Please sign in to comment.