@@ -156,8 +156,7 @@ where
156156 /// # Examples
157157 /// ```
158158 /// # #![feature(portable_simd)]
159- /// # #[cfg(feature = "std")] use core_simd::Simd;
160- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
159+ /// # use core::simd::Simd;
161160 /// let floats: Simd<f32, 4> = Simd::from_array([1.9, -4.5, f32::INFINITY, f32::NAN]);
162161 /// let ints = floats.cast::<i32>();
163162 /// assert_eq!(ints, Simd::from_array([1, -4, i32::MAX, 0]));
@@ -184,8 +183,7 @@ where
184183 /// # Examples
185184 /// ```
186185 /// # #![feature(portable_simd)]
187- /// # #[cfg(feature = "std")] use core_simd::Simd;
188- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
186+ /// # use core::simd::Simd;
189187 /// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
190188 /// let idxs = Simd::from_array([9, 3, 0, 5]);
191189 /// let alt = Simd::from_array([-5, -4, -3, -2]);
@@ -205,8 +203,7 @@ where
205203 /// # Examples
206204 /// ```
207205 /// # #![feature(portable_simd)]
208- /// # #[cfg(feature = "std")] use core_simd::Simd;
209- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
206+ /// # use core::simd::Simd;
210207 /// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
211208 /// let idxs = Simd::from_array([9, 3, 0, 5]);
212209 ///
@@ -229,8 +226,7 @@ where
229226 /// # Examples
230227 /// ```
231228 /// # #![feature(portable_simd)]
232- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
233- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
229+ /// # use core::simd::{Simd, Mask};
234230 /// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
235231 /// let idxs = Simd::from_array([9, 3, 0, 5]);
236232 /// let alt = Simd::from_array([-5, -4, -3, -2]);
@@ -264,8 +260,7 @@ where
264260 /// # Examples
265261 /// ```
266262 /// # #![feature(portable_simd)]
267- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
268- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
263+ /// # use core::simd::{Simd, Mask};
269264 /// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
270265 /// let idxs = Simd::from_array([9, 3, 0, 5]);
271266 /// let alt = Simd::from_array([-5, -4, -3, -2]);
@@ -300,8 +295,7 @@ where
300295 /// # Examples
301296 /// ```
302297 /// # #![feature(portable_simd)]
303- /// # #[cfg(feature = "std")] use core_simd::Simd;
304- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
298+ /// # use core::simd::Simd;
305299 /// let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
306300 /// let idxs = Simd::from_array([9, 3, 0, 0]);
307301 /// let vals = Simd::from_array([-27, 82, -41, 124]);
@@ -323,8 +317,7 @@ where
323317 /// # Examples
324318 /// ```
325319 /// # #![feature(portable_simd)]
326- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
327- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
320+ /// # use core::simd::{Simd, Mask};
328321 /// let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
329322 /// let idxs = Simd::from_array([9, 3, 0, 0]);
330323 /// let vals = Simd::from_array([-27, 82, -41, 124]);
@@ -358,8 +351,7 @@ where
358351 /// # Examples
359352 /// ```
360353 /// # #![feature(portable_simd)]
361- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
362- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
354+ /// # use core::simd::{Simd, Mask};
363355 /// let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
364356 /// let idxs = Simd::from_array([9, 3, 0, 0]);
365357 /// let vals = Simd::from_array([-27, 82, -41, 124]);
0 commit comments