Skip to content

Commit 0341198

Browse files
committed
Auto merge of #9574 - Alexendoo:unused-fixed, r=Jarcho
Remove unused `.fixed` files, only run asm_syntax doctests on x86 Two small changes, removes some unused `.fixed` and makes `clippy_lints` doctests pass on non x86 arches changelog: none
2 parents f8ba192 + a834ac9 commit 0341198

File tree

3 files changed

+4
-60
lines changed

3 files changed

+4
-60
lines changed

clippy_lints/src/asm_syntax.rs

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ declare_clippy_lint! {
6464
///
6565
/// ```rust,no_run
6666
/// # #![feature(asm)]
67+
/// # #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6768
/// # unsafe { let ptr = "".as_ptr();
6869
/// # use std::arch::asm;
6970
/// asm!("lea {}, [{}]", lateout(reg) _, in(reg) ptr);
@@ -72,6 +73,7 @@ declare_clippy_lint! {
7273
/// Use instead:
7374
/// ```rust,no_run
7475
/// # #![feature(asm)]
76+
/// # #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
7577
/// # unsafe { let ptr = "".as_ptr();
7678
/// # use std::arch::asm;
7779
/// asm!("lea ({}), {}", in(reg) ptr, lateout(reg) _, options(att_syntax));
@@ -103,6 +105,7 @@ declare_clippy_lint! {
103105
///
104106
/// ```rust,no_run
105107
/// # #![feature(asm)]
108+
/// # #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
106109
/// # unsafe { let ptr = "".as_ptr();
107110
/// # use std::arch::asm;
108111
/// asm!("lea ({}), {}", in(reg) ptr, lateout(reg) _, options(att_syntax));
@@ -111,6 +114,7 @@ declare_clippy_lint! {
111114
/// Use instead:
112115
/// ```rust,no_run
113116
/// # #![feature(asm)]
117+
/// # #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
114118
/// # unsafe { let ptr = "".as_ptr();
115119
/// # use std::arch::asm;
116120
/// asm!("lea {}, [{}]", lateout(reg) _, in(reg) ptr);

tests/ui/manual_assert.fixed

-45
This file was deleted.

tests/ui/option_take_on_temporary.fixed

-15
This file was deleted.

0 commit comments

Comments
 (0)