From c38ed538055b07b12d48a7fa86f3b88c20e8d1c1 Mon Sep 17 00:00:00 2001 From: Adam Gemmell Date: Tue, 8 Feb 2022 16:37:32 +0000 Subject: [PATCH] Mention the aarch64 runtime feature detection macro --- src/attributes/codegen.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/attributes/codegen.md b/src/attributes/codegen.md index 37713c0c9..c34b5155e 100644 --- a/src/attributes/codegen.md +++ b/src/attributes/codegen.md @@ -149,8 +149,8 @@ enabling or disabling compilation of code based on compile-time settings. Note that this option is not affected by the `target_feature` attribute, and is only driven by the features enabled for the entire crate. -See the [`is_x86_feature_detected`] macro in the standard library for runtime -feature detection on the x86 platforms. +See the [`is_x86_feature_detected`] or [`is_aarch64_feature_detected`] macros +in the standard library for runtime feature detection on these platforms. > Note: `rustc` has a default set of features enabled for each target and CPU. > The CPU may be chosen with the [`-C target-cpu`] flag. Individual features @@ -267,7 +267,8 @@ trait object whose methods are attributed. [_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax [`-C target-cpu`]: ../../rustc/codegen-options/index.html#target-cpu [`-C target-feature`]: ../../rustc/codegen-options/index.html#target-feature -[`is_x86_feature_detected`]: ../../std/macro.is_x86_feature_detected.html +[`is_x86_feature_detected`]: ../../std/arch/macro.is_x86_feature_detected.html +[`is_aarch64_feature_detected`]: ../../std/arch/macro.is_aarch64_feature_detected.html [`target_feature` conditional compilation option]: ../conditional-compilation.md#target_feature [attribute]: ../attributes.md [attributes]: ../attributes.md