From 6ab488af570b03a12cab9a7b90ee19679bdb7101 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Tue, 14 Dec 2021 00:13:27 +0000 Subject: [PATCH] Fix lint examples on non-x86_64 --- compiler/rustc_lint_defs/src/builtin.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index d1adb4a19de3..a17d32ef2413 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() {