Skip to content

Commit 89b9388

Browse files
committed
Fix library tests
1 parent 830b387 commit 89b9388

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

library/core/src/slice/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3979,7 +3979,7 @@ impl<T> [T] {
39793979
///
39803980
/// ```
39813981
/// #![feature(portable_simd)]
3982-
/// use core::simd::SimdFloat;
3982+
/// use core::simd::prelude::*;
39833983
///
39843984
/// let short = &[1, 2, 3];
39853985
/// let (prefix, middle, suffix) = short.as_simd::<4>();
@@ -3991,7 +3991,6 @@ impl<T> [T] {
39913991
///
39923992
/// fn basic_simd_sum(x: &[f32]) -> f32 {
39933993
/// use std::ops::Add;
3994-
/// use std::simd::f32x4;
39953994
/// let (prefix, middle, suffix) = x.as_simd();
39963995
/// let sums = f32x4::from_array([
39973996
/// prefix.iter().copied().sum(),

library/core/src/str/pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,9 +1740,9 @@ fn simd_contains(needle: &str, haystack: &str) -> Option<bool> {
17401740
debug_assert!(needle.len() > 1);
17411741

17421742
use crate::ops::BitAnd;
1743+
use crate::simd::cmp::SimdPartialEq;
17431744
use crate::simd::mask8x16 as Mask;
17441745
use crate::simd::u8x16 as Block;
1745-
use crate::simd::{SimdPartialEq, ToBitMask};
17461746

17471747
let first_probe = needle[0];
17481748
let last_byte_offset = needle.len() - 1;

library/core/tests/simd.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use core::simd::f32x4;
2-
use core::simd::SimdFloat;
1+
use core::simd::prelude::*;
32

43
#[test]
54
fn testing() {

0 commit comments

Comments
 (0)