Skip to content

Commit d3adc3b

Browse files
committed
DRAFT: std_detect: AArch64: Use implied by cfg(...)
`implied by target_features: [...]` is currently only used on the AArch64 architecture. Since those uses can be substituted with `implied by cfg(any(target_feature = ...))` or more simply `implied by cfg(target_feature = ...)` (if there's only 1 target feature to imply from), this commit attempts to use this for simplicity.
1 parent a05552d commit d3adc3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std_detect/src/detect/arch/aarch64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ features! {
110110
@FEATURE: #[stable(feature = "simd_aarch64", since = "1.60.0")] asimd: "neon";
111111
/// FEAT_AdvSIMD (Advanced SIMD/NEON)
112112
@FEATURE: #[stable(feature = "simd_aarch64", since = "1.60.0")] pmull: "pmull";
113-
implied by target_features: ["aes"];
113+
implied by cfg(target_feature = "aes");
114114
/// FEAT_PMULL (Polynomial Multiply) - Implied by `aes` target_feature
115115
@FEATURE: #[stable(feature = "simd_aarch64", since = "1.60.0")] fp: "fp";
116-
implied by target_features: ["neon"];
116+
implied by cfg(target_feature = "neon");
117117
/// FEAT_FP (Floating point support) - Implied by `neon` target_feature
118118
@FEATURE: #[stable(feature = "simd_aarch64", since = "1.60.0")] aes: "aes";
119119
/// FEAT_AES (AES SIMD instructions) & FEAT_PMULL (PMULL{2}, 64-bit operand variants)

0 commit comments

Comments
 (0)