Fix library tests
This commit is contained in:
parent
830b387e17
commit
89b9388af5
@ -3979,7 +3979,7 @@ impl<T> [T] {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(portable_simd)]
|
||||
/// use core::simd::SimdFloat;
|
||||
/// use core::simd::prelude::*;
|
||||
///
|
||||
/// let short = &[1, 2, 3];
|
||||
/// let (prefix, middle, suffix) = short.as_simd::<4>();
|
||||
@ -3991,7 +3991,6 @@ impl<T> [T] {
|
||||
///
|
||||
/// fn basic_simd_sum(x: &[f32]) -> f32 {
|
||||
/// use std::ops::Add;
|
||||
/// use std::simd::f32x4;
|
||||
/// let (prefix, middle, suffix) = x.as_simd();
|
||||
/// let sums = f32x4::from_array([
|
||||
/// prefix.iter().copied().sum(),
|
||||
|
@ -1740,9 +1740,9 @@ fn simd_contains(needle: &str, haystack: &str) -> Option<bool> {
|
||||
debug_assert!(needle.len() > 1);
|
||||
|
||||
use crate::ops::BitAnd;
|
||||
use crate::simd::cmp::SimdPartialEq;
|
||||
use crate::simd::mask8x16 as Mask;
|
||||
use crate::simd::u8x16 as Block;
|
||||
use crate::simd::{SimdPartialEq, ToBitMask};
|
||||
|
||||
let first_probe = needle[0];
|
||||
let last_byte_offset = needle.len() - 1;
|
||||
|
@ -1,5 +1,4 @@
|
||||
use core::simd::f32x4;
|
||||
use core::simd::SimdFloat;
|
||||
use core::simd::prelude::*;
|
||||
|
||||
#[test]
|
||||
fn testing() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user