Skip to content

Commit 53de3f0

Browse files
Use v1 prelude to match core (#406)
1 parent 50e8ae8 commit 53de3f0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/core_simd/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
simd_ffi,
1414
staged_api,
1515
strict_provenance,
16+
prelude_import,
1617
ptr_metadata
1718
)]
1819
#![cfg_attr(
@@ -43,6 +44,10 @@
4344
#![unstable(feature = "portable_simd", issue = "86656")]
4445
//! Portable SIMD module.
4546
47+
#[prelude_import]
48+
#[allow(unused_imports)]
49+
use core::prelude::v1::*;
50+
4651
#[path = "mod.rs"]
4752
mod core_simd;
4853
pub use self::core_simd::simd;

crates/core_simd/src/vector.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::simd::{
44
ptr::{SimdConstPtr, SimdMutPtr},
55
LaneCount, Mask, MaskElement, SupportedLaneCount, Swizzle,
66
};
7+
use core::convert::{TryFrom, TryInto};
78

89
/// A SIMD vector with the shape of `[T; N]` but the operations of `T`.
910
///

0 commit comments

Comments
 (0)