about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index d1adb4a19de..a17d32ef241 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -2420,6 +2420,7 @@ declare_lint! {
     /// ### Example
     ///
     /// ```rust
+    /// #[cfg(target_arch="x86_64")]
     /// use std::arch::asm;
     ///
     /// fn main() {
@@ -2455,6 +2456,7 @@ declare_lint! {
     /// ### Example
     ///
     /// ```rust
+    /// #[cfg(target_arch="x86_64")]
     /// use std::arch::asm;
     ///
     /// fn main() {