Skip to content

Commit c555782

Browse files
committed
Doc tests should use std
1 parent e88b825 commit c555782

File tree

3 files changed

+0
-125
lines changed

3 files changed

+0
-125
lines changed

crates/core_arch/src/x86/avx2.rs

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,12 +2631,6 @@ pub unsafe fn _mm256_shuffle_epi8(a: __m256i, b: __m256i) -> __m256i {
26312631
/// `imm8`.
26322632
///
26332633
/// ```rust
2634-
/// # #![cfg_attr(not(dox), no_std)]
2635-
/// # #[cfg(not(dox))]
2636-
/// # extern crate std as real_std;
2637-
/// # #[cfg(not(dox))]
2638-
/// # #[macro_use]
2639-
/// # extern crate std_detect as std;
26402634
/// #[cfg(target_arch = "x86")]
26412635
/// use std::arch::x86::*;
26422636
/// #[cfg(target_arch = "x86_64")]
@@ -3383,12 +3377,6 @@ pub unsafe fn _mm256_subs_epu8(a: __m256i, b: __m256i) -> __m256i {
33833377
/// 128-bit lane in `a` and `b`.
33843378
///
33853379
/// ```rust
3386-
/// # #![cfg_attr(not(dox), no_std)]
3387-
/// # #[cfg(not(dox))]
3388-
/// # extern crate std as real_std;
3389-
/// # #[cfg(not(dox))]
3390-
/// # #[macro_use]
3391-
/// # extern crate std_detect as std;
33923380
/// #[cfg(target_arch = "x86")]
33933381
/// use std::arch::x86::*;
33943382
/// #[cfg(target_arch = "x86_64")]
@@ -3443,12 +3431,6 @@ pub unsafe fn _mm256_unpackhi_epi8(a: __m256i, b: __m256i) -> __m256i {
34433431
/// 128-bit lane of `a` and `b`.
34443432
///
34453433
/// ```rust
3446-
/// # #![cfg_attr(not(dox), no_std)]
3447-
/// # #[cfg(not(dox))]
3448-
/// # extern crate std as real_std;
3449-
/// # #[cfg(not(dox))]
3450-
/// # #[macro_use]
3451-
/// # extern crate std_detect as std;
34523434
/// #[cfg(target_arch = "x86")]
34533435
/// use std::arch::x86::*;
34543436
/// #[cfg(target_arch = "x86_64")]
@@ -3502,12 +3484,6 @@ pub unsafe fn _mm256_unpacklo_epi8(a: __m256i, b: __m256i) -> __m256i {
35023484
/// 128-bit lane of `a` and `b`.
35033485
///
35043486
/// ```rust
3505-
/// # #![cfg_attr(not(dox), no_std)]
3506-
/// # #[cfg(not(dox))]
3507-
/// # extern crate std as real_std;
3508-
/// # #[cfg(not(dox))]
3509-
/// # #[macro_use]
3510-
/// # extern crate std_detect as std;
35113487
/// #[cfg(target_arch = "x86")]
35123488
/// use std::arch::x86::*;
35133489
/// #[cfg(target_arch = "x86_64")]
@@ -3555,12 +3531,6 @@ pub unsafe fn _mm256_unpackhi_epi16(a: __m256i, b: __m256i) -> __m256i {
35553531
/// 128-bit lane of `a` and `b`.
35563532
///
35573533
/// ```rust
3558-
/// # #![cfg_attr(not(dox), no_std)]
3559-
/// # #[cfg(not(dox))]
3560-
/// # extern crate std as real_std;
3561-
/// # #[cfg(not(dox))]
3562-
/// # #[macro_use]
3563-
/// # extern crate std_detect as std;
35643534
/// #[cfg(target_arch = "x86")]
35653535
/// use std::arch::x86::*;
35663536
/// #[cfg(target_arch = "x86_64")]
@@ -3609,12 +3579,6 @@ pub unsafe fn _mm256_unpacklo_epi16(a: __m256i, b: __m256i) -> __m256i {
36093579
/// 128-bit lane of `a` and `b`.
36103580
///
36113581
/// ```rust
3612-
/// # #![cfg_attr(not(dox), no_std)]
3613-
/// # #[cfg(not(dox))]
3614-
/// # extern crate std as real_std;
3615-
/// # #[cfg(not(dox))]
3616-
/// # #[macro_use]
3617-
/// # extern crate std_detect as std;
36183582
/// #[cfg(target_arch = "x86")]
36193583
/// use std::arch::x86::*;
36203584
/// #[cfg(target_arch = "x86_64")]
@@ -3652,12 +3616,6 @@ pub unsafe fn _mm256_unpackhi_epi32(a: __m256i, b: __m256i) -> __m256i {
36523616
/// 128-bit lane of `a` and `b`.
36533617
///
36543618
/// ```rust
3655-
/// # #![cfg_attr(not(dox), no_std)]
3656-
/// # #[cfg(not(dox))]
3657-
/// # extern crate std as real_std;
3658-
/// # #[cfg(not(dox))]
3659-
/// # #[macro_use]
3660-
/// # extern crate std_detect as std;
36613619
/// #[cfg(target_arch = "x86")]
36623620
/// use std::arch::x86::*;
36633621
/// #[cfg(target_arch = "x86_64")]
@@ -3695,12 +3653,6 @@ pub unsafe fn _mm256_unpacklo_epi32(a: __m256i, b: __m256i) -> __m256i {
36953653
/// 128-bit lane of `a` and `b`.
36963654
///
36973655
/// ```rust
3698-
/// # #![cfg_attr(not(dox), no_std)]
3699-
/// # #[cfg(not(dox))]
3700-
/// # extern crate std as real_std;
3701-
/// # #[cfg(not(dox))]
3702-
/// # #[macro_use]
3703-
/// # extern crate std_detect as std;
37043656
/// #[cfg(target_arch = "x86")]
37053657
/// use std::arch::x86::*;
37063658
/// #[cfg(target_arch = "x86_64")]
@@ -3738,12 +3690,6 @@ pub unsafe fn _mm256_unpackhi_epi64(a: __m256i, b: __m256i) -> __m256i {
37383690
/// 128-bit lane of `a` and `b`.
37393691
///
37403692
/// ```rust
3741-
/// # #![cfg_attr(not(dox), no_std)]
3742-
/// # #[cfg(not(dox))]
3743-
/// # extern crate std as real_std;
3744-
/// # #[cfg(not(dox))]
3745-
/// # #[macro_use]
3746-
/// # extern crate std_detect as std;
37473693
/// #[cfg(target_arch = "x86")]
37483694
/// use std::arch::x86::*;
37493695
/// #[cfg(target_arch = "x86_64")]

crates/core_arch/src/x86/sse41.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,6 @@ pub unsafe fn _mm_ceil_ss(a: __m128, b: __m128) -> __m128 {
709709
/// Rounding is done according to the rounding parameter, which can be one of:
710710
///
711711
/// ```
712-
/// #![feature(stdsimd)]
713-
/// # #![cfg_attr(not(dox), no_std)]
714-
/// # #[cfg(not(dox))]
715-
/// # extern crate std as real_std;
716-
/// # #[cfg(not(dox))]
717-
/// # extern crate std_detect as std;
718-
///
719712
/// #[cfg(target_arch = "x86")]
720713
/// use std::arch::x86::*;
721714
/// #[cfg(target_arch = "x86_64")]
@@ -761,14 +754,6 @@ pub unsafe fn _mm_round_pd(a: __m128d, rounding: i32) -> __m128d {
761754
/// Rounding is done according to the rounding parameter, which can be one of:
762755
///
763756
/// ```
764-
/// #![feature(stdsimd)]
765-
///
766-
/// # #![cfg_attr(not(dox), no_std)]
767-
/// # #[cfg(not(dox))]
768-
/// # extern crate std as real_std;
769-
/// # #[cfg(not(dox))]
770-
/// # extern crate std_detect as std;
771-
///
772757
/// #[cfg(target_arch = "x86")]
773758
/// use std::arch::x86::*;
774759
/// #[cfg(target_arch = "x86_64")]
@@ -816,13 +801,6 @@ pub unsafe fn _mm_round_ps(a: __m128, rounding: i32) -> __m128 {
816801
/// Rounding is done according to the rounding parameter, which can be one of:
817802
///
818803
/// ```
819-
/// #![feature(stdsimd)]
820-
/// # #![cfg_attr(not(dox), no_std)]
821-
/// # #[cfg(not(dox))]
822-
/// # extern crate std as real_std;
823-
/// # #[cfg(not(dox))]
824-
/// # extern crate std_detect as std;
825-
///
826804
/// #[cfg(target_arch = "x86")]
827805
/// use std::arch::x86::*;
828806
/// #[cfg(target_arch = "x86_64")]
@@ -870,13 +848,6 @@ pub unsafe fn _mm_round_sd(a: __m128d, b: __m128d, rounding: i32) -> __m128d {
870848
/// Rounding is done according to the rounding parameter, which can be one of:
871849
///
872850
/// ```
873-
/// #![feature(stdsimd)]
874-
/// # #![cfg_attr(not(dox), no_std)]
875-
/// # #[cfg(not(dox))]
876-
/// # extern crate std as real_std;
877-
/// # #[cfg(not(dox))]
878-
/// # extern crate std_detect as std;
879-
///
880851
/// #[cfg(target_arch = "x86")]
881852
/// use std::arch::x86::*;
882853
/// #[cfg(target_arch = "x86_64")]

crates/core_arch/src/x86/sse42.rs

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +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(stdsimd)]
122-
/// # #![cfg_attr(not(dox), no_std)]
123-
/// # #[cfg(not(dox))]
124-
/// # #[macro_use]
125-
/// # extern crate std as real_std;
126-
/// # #[cfg(not(dox))]
127-
/// # #[macro_use]
128-
/// # extern crate std_detect as std;
129-
/// # #[cfg(not(dox))]
130-
/// # use real_std::prelude::v1::*;
131121
/// #[cfg(target_arch = "x86")]
132122
/// use std::arch::x86::*;
133123
/// #[cfg(target_arch = "x86_64")]
@@ -165,14 +155,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
165155
/// one or more of a given set of characters in the haystack.
166156
///
167157
/// ```
168-
/// # #![feature(stdsimd)]
169-
/// # #![cfg_attr(not(dox), no_std)]
170-
/// # #[cfg(not(dox))]
171-
/// # #[macro_use]
172-
/// # extern crate std as real_std;
173-
/// # #[cfg(not(dox))]
174-
/// # #[macro_use]
175-
/// # extern crate std_detect as std;
176158
/// #[cfg(target_arch = "x86")]
177159
/// use std::arch::x86::*;
178160
/// #[cfg(target_arch = "x86_64")]
@@ -209,14 +191,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
209191
/// range of characters.
210192
///
211193
/// ```
212-
/// # #![feature(stdsimd)]
213-
/// # #![cfg_attr(not(dox), no_std)]
214-
/// # #[cfg(not(dox))]
215-
/// # #[macro_use]
216-
/// # extern crate std as real_std;
217-
/// # #[cfg(not(dox))]
218-
/// # #[macro_use]
219-
/// # extern crate std_detect as std;
220194
/// #[cfg(target_arch = "x86")]
221195
/// use std::arch::x86::*;
222196
/// #[cfg(target_arch = "x86_64")]
@@ -253,14 +227,6 @@ pub unsafe fn _mm_cmpistrm(a: __m128i, b: __m128i, imm8: i32) -> __m128i {
253227
/// Working with 16-bit characters.
254228
///
255229
/// ```
256-
/// # #![feature(stdsimd)]
257-
/// # #![cfg_attr(not(dox), no_std)]
258-
/// # #[cfg(not(dox))]
259-
/// # #[macro_use]
260-
/// # extern crate std as real_std;
261-
/// # #[cfg(not(dox))]
262-
/// # #[macro_use]
263-
/// # extern crate std_detect as std;
264230
/// #[cfg(target_arch = "x86")]
265231
/// use std::arch::x86::*;
266232
/// #[cfg(target_arch = "x86_64")]
@@ -482,14 +448,6 @@ pub unsafe fn _mm_cmpestrm(a: __m128i, la: i32, b: __m128i, lb: i32, imm8: i32)
482448
/// # Examples
483449
///
484450
/// ```
485-
/// # #![feature(stdsimd)]
486-
/// # #![cfg_attr(not(dox), no_std)]
487-
/// # #[cfg(not(dox))]
488-
/// # #[macro_use]
489-
/// # extern crate std as real_std;
490-
/// # #[cfg(not(dox))]
491-
/// # #[macro_use]
492-
/// # extern crate std_detect as std;
493451
/// #[cfg(target_arch = "x86")]
494452
/// use std::arch::x86::*;
495453
/// #[cfg(target_arch = "x86_64")]

0 commit comments

Comments
 (0)