Skip to content

Commit 6ab488a

Browse files
committed
Fix lint examples on non-x86_64
1 parent d1204ac commit 6ab488a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: compiler/rustc_lint_defs/src/builtin.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2420,6 +2420,7 @@ declare_lint! {
24202420
/// ### Example
24212421
///
24222422
/// ```rust
2423+
/// #[cfg(target_arch="x86_64")]
24232424
/// use std::arch::asm;
24242425
///
24252426
/// fn main() {
@@ -2455,6 +2456,7 @@ declare_lint! {
24552456
/// ### Example
24562457
///
24572458
/// ```rust
2459+
/// #[cfg(target_arch="x86_64")]
24582460
/// use std::arch::asm;
24592461
///
24602462
/// fn main() {

0 commit comments

Comments
 (0)