Skip to content

Commit 7021ce6

Browse files
authored
Merge pull request rust-lang#1061 from adamgemmell/dev/aarch64-detect
Mention std::is_aarch64_feature_detected
2 parents 039e1a7 + c38ed53 commit 7021ce6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/attributes/codegen.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ enabling or disabling compilation of code based on compile-time settings. Note
149149
that this option is not affected by the `target_feature` attribute, and is
150150
only driven by the features enabled for the entire crate.
151151

152-
See the [`is_x86_feature_detected`] macro in the standard library for runtime
153-
feature detection on the x86 platforms.
152+
See the [`is_x86_feature_detected`] or [`is_aarch64_feature_detected`] macros
153+
in the standard library for runtime feature detection on these platforms.
154154

155155
> Note: `rustc` has a default set of features enabled for each target and CPU.
156156
> The CPU may be chosen with the [`-C target-cpu`] flag. Individual features
@@ -267,7 +267,8 @@ trait object whose methods are attributed.
267267
[_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax
268268
[`-C target-cpu`]: ../../rustc/codegen-options/index.html#target-cpu
269269
[`-C target-feature`]: ../../rustc/codegen-options/index.html#target-feature
270-
[`is_x86_feature_detected`]: ../../std/macro.is_x86_feature_detected.html
270+
[`is_x86_feature_detected`]: ../../std/arch/macro.is_x86_feature_detected.html
271+
[`is_aarch64_feature_detected`]: ../../std/arch/macro.is_aarch64_feature_detected.html
271272
[`target_feature` conditional compilation option]: ../conditional-compilation.md#target_feature
272273
[attribute]: ../attributes.md
273274
[attributes]: ../attributes.md

0 commit comments

Comments
 (0)