Skip to content

Commit 6809280

Browse files
waywardmonkeysAmanieu
authored andcommitted
Use #[rustfmt::skip] instead of #[cfg_attr(...)].
1 parent 789666c commit 6809280

File tree

1 file changed

+12
-12
lines changed
  • crates/core_arch/src/aarch64/neon

1 file changed

+12
-12
lines changed

crates/core_arch/src/aarch64/neon/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,11 +4127,11 @@ mod tests {
41274127

41284128
#[simd_test(enable = "neon")]
41294129
unsafe fn test_vpminq_s8() {
4130-
#[cfg_attr(rustfmt, skip)]
4130+
#[rustfmt::skip]
41314131
let a = i8x16::new(1, -2, 3, -4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8);
4132-
#[cfg_attr(rustfmt, skip)]
4132+
#[rustfmt::skip]
41334133
let b = i8x16::new(0, 3, 2, 5, 4, 7, 6, 9, 0, 3, 2, 5, 4, 7, 6, 9);
4134-
#[cfg_attr(rustfmt, skip)]
4134+
#[rustfmt::skip]
41354135
let e = i8x16::new(-2, -4, 5, 7, 1, 3, 5, 7, 0, 2, 4, 6, 0, 2, 4, 6);
41364136
let r: i8x16 = transmute(vpminq_s8(transmute(a), transmute(b)));
41374137
assert_eq!(r, e);
@@ -4157,11 +4157,11 @@ mod tests {
41574157

41584158
#[simd_test(enable = "neon")]
41594159
unsafe fn test_vpminq_u8() {
4160-
#[cfg_attr(rustfmt, skip)]
4160+
#[rustfmt::skip]
41614161
let a = u8x16::new(1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8);
4162-
#[cfg_attr(rustfmt, skip)]
4162+
#[rustfmt::skip]
41634163
let b = u8x16::new(0, 3, 2, 5, 4, 7, 6, 9, 0, 3, 2, 5, 4, 7, 6, 9);
4164-
#[cfg_attr(rustfmt, skip)]
4164+
#[rustfmt::skip]
41654165
let e = u8x16::new(1, 3, 5, 7, 1, 3, 5, 7, 0, 2, 4, 6, 0, 2, 4, 6);
41664166
let r: u8x16 = transmute(vpminq_u8(transmute(a), transmute(b)));
41674167
assert_eq!(r, e);
@@ -4205,11 +4205,11 @@ mod tests {
42054205

42064206
#[simd_test(enable = "neon")]
42074207
unsafe fn test_vpmaxq_s8() {
4208-
#[cfg_attr(rustfmt, skip)]
4208+
#[rustfmt::skip]
42094209
let a = i8x16::new(1, -2, 3, -4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8);
4210-
#[cfg_attr(rustfmt, skip)]
4210+
#[rustfmt::skip]
42114211
let b = i8x16::new(0, 3, 2, 5, 4, 7, 6, 9, 0, 3, 2, 5, 4, 7, 6, 9);
4212-
#[cfg_attr(rustfmt, skip)]
4212+
#[rustfmt::skip]
42134213
let e = i8x16::new(1, 3, 6, 8, 2, 4, 6, 8, 3, 5, 7, 9, 3, 5, 7, 9);
42144214
let r: i8x16 = transmute(vpmaxq_s8(transmute(a), transmute(b)));
42154215
assert_eq!(r, e);
@@ -4235,11 +4235,11 @@ mod tests {
42354235

42364236
#[simd_test(enable = "neon")]
42374237
unsafe fn test_vpmaxq_u8() {
4238-
#[cfg_attr(rustfmt, skip)]
4238+
#[rustfmt::skip]
42394239
let a = u8x16::new(1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8);
4240-
#[cfg_attr(rustfmt, skip)]
4240+
#[rustfmt::skip]
42414241
let b = u8x16::new(0, 3, 2, 5, 4, 7, 6, 9, 0, 3, 2, 5, 4, 7, 6, 9);
4242-
#[cfg_attr(rustfmt, skip)]
4242+
#[rustfmt::skip]
42434243
let e = u8x16::new(2, 4, 6, 8, 2, 4, 6, 8, 3, 5, 7, 9, 3, 5, 7, 9);
42444244
let r: u8x16 = transmute(vpmaxq_u8(transmute(a), transmute(b)));
42454245
assert_eq!(r, e);

0 commit comments

Comments
 (0)