Skip to content

Commit c3cc892

Browse files
Fix every invocation of rustfmt::skip
1 parent c7359ab commit c3cc892

File tree

21 files changed

+36
-36
lines changed

21 files changed

+36
-36
lines changed

examples/matrix_inverse/src/scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Scalar implementation
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33
use crate::*;
44

55
#[allow(clippy::too_many_lines)]

src/api/cast/v128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromCast` and `IntoCast` implementations for portable 128-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/api/cast/v16.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromCast` and `IntoCast` implementations for portable 16-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/api/cast/v256.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromCast` and `IntoCast` implementations for portable 256-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/api/cast/v32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromCast` and `IntoCast` implementations for portable 32-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/api/cast/v512.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromCast` and `IntoCast` implementations for portable 512-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/api/cast/v64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromCast` and `IntoCast` implementations for portable 64-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/api/into_bits/arch_specific.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! `FromBits` and `IntoBits` between portable vector types and the
22
//! architecture-specific vector types.
3-
#![rustfmt::skip]
3+
#[rustfmt::skip]
44

55
// FIXME: MIPS FromBits/IntoBits
66

src/api/into_bits/v128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromBits` and `IntoBits` implementations for portable 128-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
#[allow(unused)] // wasm_bindgen_test
55
use crate::*;

src/api/into_bits/v16.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromBits` and `IntoBits` implementations for portable 16-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
#[allow(unused)] // wasm_bindgen_test
55
use crate::*;

src/api/into_bits/v256.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromBits` and `IntoBits` implementations for portable 256-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
#[allow(unused)] // wasm_bindgen_test
55
use crate::*;

src/api/into_bits/v32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromBits` and `IntoBits` implementations for portable 32-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
#[allow(unused)] // wasm_bindgen_test
55
use crate::*;

src/api/into_bits/v512.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromBits` and `IntoBits` implementations for portable 512-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
#[allow(unused)] // wasm_bindgen_test
55
use crate::*;

src/api/into_bits/v64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! `FromBits` and `IntoBits` implementations for portable 64-bit wide vectors
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
#[allow(unused)] // wasm_bindgen_test
55
use crate::*;

src/codegen/bit_manip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! LLVM bit manipulation intrinsics.
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/v128.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! 128-bit wide vector types
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/v256.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! 256-bit wide vector types
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/v512.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! 512-bit wide vector types
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

src/v64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! 64-bit wide vector types
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use super::*;
55

src/vPtr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Vectors of pointers
2-
#![rustfmt::skip]
2+
#[rustfmt::skip]
33

44
use crate::*;
55

tests/endianness.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn endian_indexing() {
1717
#[cfg_attr(not(target_arch = "wasm32"), test)]
1818
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
1919
fn endian_bitcasts() {
20-
#[cfg_attr(rustfmt, rustfmt_skip)]
20+
#[rustfmt::skip]
2121
let x = i8x16::new(
2222
0, 1, 2, 3, 4, 5, 6, 7,
2323
8, 9, 10, 11, 12, 13, 14, 15,
@@ -34,13 +34,13 @@ fn endian_bitcasts() {
3434
#[cfg_attr(not(target_arch = "wasm32"), test)]
3535
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
3636
fn endian_casts() {
37-
#[cfg_attr(rustfmt, rustfmt_skip)]
37+
#[rustfmt::skip]
3838
let x = i8x16::new(
3939
0, 1, 2, 3, 4, 5, 6, 7,
4040
8, 9, 10, 11, 12, 13, 14, 15,
4141
);
4242
let t: i16x16 = x.into(); // simd_cast
43-
#[cfg_attr(rustfmt, rustfmt_skip)]
43+
#[rustfmt::skip]
4444
let e = i16x16::new(
4545
0, 1, 2, 3, 4, 5, 6, 7,
4646
8, 9, 10, 11, 12, 13, 14, 15,
@@ -51,7 +51,7 @@ fn endian_casts() {
5151
#[cfg_attr(not(target_arch = "wasm32"), test)]
5252
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
5353
fn endian_load_and_stores() {
54-
#[cfg_attr(rustfmt, rustfmt_skip)]
54+
#[rustfmt::skip]
5555
let x = i8x16::new(
5656
0, 1, 2, 3, 4, 5, 6, 7,
5757
8, 9, 10, 11, 12, 13, 14, 15,
@@ -93,7 +93,7 @@ fn endian_array_union() {
9393
data: [i8; 16],
9494
vec: i8x16,
9595
}
96-
#[cfg_attr(rustfmt, rustfmt_skip)]
96+
#[rustfmt::skip]
9797
let x = i8x16::new(
9898
0, 1, 2, 3, 4, 5, 6, 7,
9999
8, 9, 10, 11, 12, 13, 14, 15,
@@ -104,12 +104,12 @@ fn endian_array_union() {
104104
assert_eq!(x[i], i as i8);
105105
}
106106

107-
#[cfg_attr(rustfmt, rustfmt_skip)]
107+
#[rustfmt::skip]
108108
let y = [
109109
15, 14, 13, 12, 11, 19, 9, 8,
110110
7, 6, 5, 4, 3, 2, 1, 0
111111
];
112-
#[cfg_attr(rustfmt, rustfmt_skip)]
112+
#[rustfmt::skip]
113113
let e = i8x16::new(
114114
15, 14, 13, 12, 11, 19, 9, 8,
115115
7, 6, 5, 4, 3, 2, 1, 0
@@ -121,7 +121,7 @@ fn endian_array_union() {
121121
data: [i16; 8],
122122
vec: i8x16,
123123
}
124-
#[cfg_attr(rustfmt, rustfmt_skip)]
124+
#[rustfmt::skip]
125125
let x = i8x16::new(
126126
0, 1, 2, 3, 4, 5, 6, 7,
127127
8, 9, 10, 11, 12, 13, 14, 15,
@@ -152,14 +152,14 @@ fn endian_tuple_access() {
152152
let y: f32x4 = unsafe { A { data: (3., 2., 1., 0.) }.vec };
153153
assert_eq!(y, f32x4::new(3., 2., 1., 0.));
154154

155-
#[cfg_attr(rustfmt, rustfmt_skip)]
155+
#[rustfmt::skip]
156156
type I8x16T = (i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8);
157157
union B {
158158
data: I8x16T,
159159
vec: i8x16,
160160
}
161161

162-
#[cfg_attr(rustfmt, rustfmt_skip)]
162+
#[rustfmt::skip]
163163
let x = i8x16::new(
164164
0, 1, 2, 3, 4, 5, 6, 7,
165165
8, 9, 10, 11, 12, 13, 14, 15,
@@ -183,27 +183,27 @@ fn endian_tuple_access() {
183183
assert_eq!(x.14, 14);
184184
assert_eq!(x.15, 15);
185185

186-
#[cfg_attr(rustfmt, rustfmt_skip)]
186+
#[rustfmt::skip]
187187
let y = (
188188
15, 14, 13, 12, 11, 10, 9, 8,
189189
7, 6, 5, 4, 3, 2, 1, 0
190190
);
191191
let z: i8x16 = unsafe { B { data: y }.vec };
192-
#[cfg_attr(rustfmt, rustfmt_skip)]
192+
#[rustfmt::skip]
193193
let e = i8x16::new(
194194
15, 14, 13, 12, 11, 10, 9, 8,
195195
7, 6, 5, 4, 3, 2, 1, 0
196196
);
197197
assert_eq!(e, z);
198198

199-
#[cfg_attr(rustfmt, rustfmt_skip)]
199+
#[rustfmt::skip]
200200
type I16x8T = (i16, i16, i16, i16, i16, i16, i16, i16);
201201
union C {
202202
data: I16x8T,
203203
vec: i8x16,
204204
}
205205

206-
#[cfg_attr(rustfmt, rustfmt_skip)]
206+
#[rustfmt::skip]
207207
let x = i8x16::new(
208208
0, 1, 2, 3, 4, 5, 6, 7,
209209
8, 9, 10, 11, 12, 13, 14, 15,
@@ -224,7 +224,7 @@ fn endian_tuple_access() {
224224
assert_eq!(x.6, e[6]);
225225
assert_eq!(x.7, e[7]);
226226

227-
#[cfg_attr(rustfmt, rustfmt_skip)]
227+
#[rustfmt::skip]
228228
#[repr(C)]
229229
#[derive(Copy ,Clone)]
230230
pub struct Tup(pub i8, pub i8, pub i16, pub i8, pub i8, pub i16,
@@ -235,7 +235,7 @@ fn endian_tuple_access() {
235235
vec: i8x16,
236236
}
237237

238-
#[cfg_attr(rustfmt, rustfmt_skip)]
238+
#[rustfmt::skip]
239239
let x = i8x16::new(
240240
0, 1, 2, 3, 4, 5, 6, 7,
241241
8, 9, 10, 11, 12, 13, 14, 15,

0 commit comments

Comments
 (0)