Skip to content

Commit cc7b5e2

Browse files
committed
fix doc tests
1 parent eb081a2 commit cc7b5e2

File tree

4 files changed

+6
-37
lines changed

4 files changed

+6
-37
lines changed

coresimd/x86/avx2.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,8 +2792,6 @@ pub unsafe fn _mm256_shuffle_epi8(a: __m256i, b: __m256i) -> __m256i {
27922792
/// `imm8`.
27932793
///
27942794
/// ```rust
2795-
/// # #![feature(cfg_target_feature)]
2796-
/// # #![feature(target_feature, stdsimd)]
27972795
/// # #![cfg_attr(not(dox), no_std)]
27982796
/// # #[cfg(not(dox))]
27992797
/// # extern crate std as real_std;
@@ -3546,8 +3544,6 @@ pub unsafe fn _mm256_subs_epu8(a: __m256i, b: __m256i) -> __m256i {
35463544
/// 128-bit lane in `a` and `b`.
35473545
///
35483546
/// ```rust
3549-
/// # #![feature(cfg_target_feature)]
3550-
/// # #![feature(target_feature, stdsimd)]
35513547
/// # #![cfg_attr(not(dox), no_std)]
35523548
/// # #[cfg(not(dox))]
35533549
/// # extern crate std as real_std;
@@ -3601,8 +3597,6 @@ pub unsafe fn _mm256_unpackhi_epi8(a: __m256i, b: __m256i) -> __m256i {
36013597
/// 128-bit lane of `a` and `b`.
36023598
///
36033599
/// ```rust
3604-
/// # #![feature(cfg_target_feature)]
3605-
/// # #![feature(target_feature, stdsimd)]
36063600
/// # #![cfg_attr(not(dox), no_std)]
36073601
/// # #[cfg(not(dox))]
36083602
/// # extern crate std as real_std;
@@ -3655,8 +3649,6 @@ pub unsafe fn _mm256_unpacklo_epi8(a: __m256i, b: __m256i) -> __m256i {
36553649
/// 128-bit lane of `a` and `b`.
36563650
///
36573651
/// ```rust
3658-
/// # #![feature(cfg_target_feature)]
3659-
/// # #![feature(target_feature, stdsimd)]
36603652
/// # #![cfg_attr(not(dox), no_std)]
36613653
/// # #[cfg(not(dox))]
36623654
/// # extern crate std as real_std;
@@ -3707,8 +3699,6 @@ pub unsafe fn _mm256_unpackhi_epi16(a: __m256i, b: __m256i) -> __m256i {
37073699
/// 128-bit lane of `a` and `b`.
37083700
///
37093701
/// ```rust
3710-
/// # #![feature(cfg_target_feature)]
3711-
/// # #![feature(target_feature, stdsimd)]
37123702
/// # #![cfg_attr(not(dox), no_std)]
37133703
/// # #[cfg(not(dox))]
37143704
/// # extern crate std as real_std;
@@ -3760,8 +3750,6 @@ pub unsafe fn _mm256_unpacklo_epi16(a: __m256i, b: __m256i) -> __m256i {
37603750
/// 128-bit lane of `a` and `b`.
37613751
///
37623752
/// ```rust
3763-
/// # #![feature(cfg_target_feature)]
3764-
/// # #![feature(target_feature, stdsimd)]
37653753
/// # #![cfg_attr(not(dox), no_std)]
37663754
/// # #[cfg(not(dox))]
37673755
/// # extern crate std as real_std;
@@ -3809,8 +3797,6 @@ pub unsafe fn _mm256_unpackhi_epi32(a: __m256i, b: __m256i) -> __m256i {
38093797
/// 128-bit lane of `a` and `b`.
38103798
///
38113799
/// ```rust
3812-
/// # #![feature(cfg_target_feature)]
3813-
/// # #![feature(target_feature, stdsimd)]
38143800
/// # #![cfg_attr(not(dox), no_std)]
38153801
/// # #[cfg(not(dox))]
38163802
/// # extern crate std as real_std;
@@ -3858,8 +3844,6 @@ pub unsafe fn _mm256_unpacklo_epi32(a: __m256i, b: __m256i) -> __m256i {
38583844
/// 128-bit lane of `a` and `b`.
38593845
///
38603846
/// ```rust
3861-
/// # #![feature(cfg_target_feature)]
3862-
/// # #![feature(target_feature, stdsimd)]
38633847
/// # #![cfg_attr(not(dox), no_std)]
38643848
/// # #[cfg(not(dox))]
38653849
/// # extern crate std as real_std;
@@ -3903,8 +3887,6 @@ pub unsafe fn _mm256_unpackhi_epi64(a: __m256i, b: __m256i) -> __m256i {
39033887
/// 128-bit lane of `a` and `b`.
39043888
///
39053889
/// ```rust
3906-
/// # #![feature(cfg_target_feature)]
3907-
/// # #![feature(target_feature, stdsimd)]
39083890
/// # #![cfg_attr(not(dox), no_std)]
39093891
/// # #[cfg(not(dox))]
39103892
/// # extern crate std as real_std;

coresimd/x86/mod.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ types! {
3535
/// ```
3636
/// # #![feature(stdsimd)]
3737
/// # #![cfg_attr(dox, feature(mmx_target_feature))]
38-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature))]
3938
/// # #![cfg_attr(not(dox), no_std)]
4039
/// # #[cfg(not(dox))]
4140
/// # extern crate std as real_std;
@@ -85,7 +84,7 @@ types! {
8584
/// # Examples
8685
///
8786
/// ```
88-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
87+
/// # #![cfg_attr(not(dox), feature(stdsimd))]
8988
/// # #![cfg_attr(not(dox), no_std)]
9089
/// # #[cfg(not(dox))]
9190
/// # extern crate std as real_std;
@@ -129,7 +128,7 @@ types! {
129128
/// # Examples
130129
///
131130
/// ```
132-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
131+
/// # #![cfg_attr(not(dox), feature(stdsimd))]
133132
/// # #![cfg_attr(not(dox), no_std)]
134133
/// # #[cfg(not(dox))]
135134
/// # extern crate std as real_std;
@@ -173,7 +172,7 @@ types! {
173172
/// # Examples
174173
///
175174
/// ```
176-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
175+
/// # #![cfg_attr(not(dox), feature(stdsimd))]
177176
/// # #![cfg_attr(not(dox), no_std)]
178177
/// # #[cfg(not(dox))]
179178
/// # extern crate std as real_std;
@@ -221,7 +220,7 @@ types! {
221220
/// # Examples
222221
///
223222
/// ```
224-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
223+
/// # #![cfg_attr(not(dox), feature(stdsimd))]
225224
/// # #![cfg_attr(not(dox), no_std)]
226225
/// # #[cfg(not(dox))]
227226
/// # extern crate std as real_std;
@@ -265,7 +264,7 @@ types! {
265264
/// # Examples
266265
///
267266
/// ```
268-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
267+
/// # #![cfg_attr(not(dox), feature(stdsimd))]
269268
/// # #![cfg_attr(not(dox), no_std)]
270269
/// # #[cfg(not(dox))]
271270
/// # extern crate std as real_std;
@@ -309,7 +308,7 @@ types! {
309308
/// # Examples
310309
///
311310
/// ```
312-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
311+
/// # #![cfg_attr(not(dox), feature(stdsimd))]
313312
/// # #![cfg_attr(not(dox), no_std)]
314313
/// # #[cfg(not(dox))]
315314
/// # extern crate std as real_std;

coresimd/x86/sse.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,6 @@ pub unsafe fn _mm_movemask_ps(a: __m128) -> i32 {
10961096
/// This corresponds to the `MOVHPS` / `MOVHPD` / `VMOVHPD` instructions.
10971097
///
10981098
/// ```rust
1099-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature))]
11001099
/// # #![feature(stdsimd)]
11011100
/// # #![cfg_attr(not(dox), no_std)]
11021101
/// # #[cfg(not(dox))]
@@ -1152,7 +1151,6 @@ pub unsafe fn _mm_loadh_pi(a: __m128, p: *const __m64) -> __m128 {
11521151
/// This corresponds to the `MOVLPS` / `MOVLDP` / `VMOVLDP` instructions.
11531152
///
11541153
/// ```rust
1155-
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature))]
11561154
/// # #![feature(stdsimd)]
11571155
/// # #![cfg_attr(not(dox), no_std)]
11581156
/// # #[cfg(not(dox))]

coresimd/x86/sse42.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
118118
/// Find a substring using [`_SIDD_CMP_EQUAL_ORDERED`]
119119
///
120120
/// ```
121-
/// # #![feature(cfg_target_feature)]
122-
/// # #![feature(target_feature)]
123121
/// # #![feature(stdsimd)]
124122
/// # #![cfg_attr(not(dox), no_std)]
125123
/// # #[cfg(not(dox))]
@@ -167,8 +165,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
167165
/// one or more of a given set of characters in the haystack.
168166
///
169167
/// ```
170-
/// # #![feature(cfg_target_feature)]
171-
/// # #![feature(target_feature)]
172168
/// # #![feature(stdsimd)]
173169
/// # #![cfg_attr(not(dox), no_std)]
174170
/// # #[cfg(not(dox))]
@@ -213,8 +209,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
213209
/// range of characters.
214210
///
215211
/// ```
216-
/// # #![feature(cfg_target_feature)]
217-
/// # #![feature(target_feature)]
218212
/// # #![feature(stdsimd)]
219213
/// # #![cfg_attr(not(dox), no_std)]
220214
/// # #[cfg(not(dox))]
@@ -259,8 +253,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
259253
/// Working with 16-bit characters.
260254
///
261255
/// ```
262-
/// # #![feature(cfg_target_feature)]
263-
/// # #![feature(target_feature)]
264256
/// # #![feature(stdsimd)]
265257
/// # #![cfg_attr(not(dox), no_std)]
266258
/// # #[cfg(not(dox))]
@@ -492,8 +484,6 @@ pub unsafe fn _mm_cmpestrm(
492484
/// # Examples
493485
///
494486
/// ```
495-
/// # #![feature(cfg_target_feature)]
496-
/// # #![feature(target_feature)]
497487
/// # #![feature(stdsimd)]
498488
/// # #![cfg_attr(not(dox), no_std)]
499489
/// # #[cfg(not(dox))]

0 commit comments

Comments
 (0)