diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2024-03-22 18:41:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-22 15:41:08 -0700 |
| commit | 53de3f08061bfeb4a96ade3587aee366cd13e065 (patch) | |
| tree | 49c4e887e77ec25f8d3fc550dde3d50edca5f043 | |
| parent | 50e8ae892d00f216fa920272a23204cd8c990265 (diff) | |
| download | rust-53de3f08061bfeb4a96ade3587aee366cd13e065.tar.gz rust-53de3f08061bfeb4a96ade3587aee366cd13e065.zip | |
Use v1 prelude to match core (rust-lang/portable-simd#406)
| -rw-r--r-- | crates/core_simd/src/lib.rs | 5 | ||||
| -rw-r--r-- | crates/core_simd/src/vector.rs | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/crates/core_simd/src/lib.rs b/crates/core_simd/src/lib.rs index 8aee556b772..a2e40e81105 100644 --- a/crates/core_simd/src/lib.rs +++ b/crates/core_simd/src/lib.rs @@ -13,6 +13,7 @@ simd_ffi, staged_api, strict_provenance, + prelude_import, ptr_metadata )] #![cfg_attr( @@ -43,6 +44,10 @@ #![unstable(feature = "portable_simd", issue = "86656")] //! Portable SIMD module. +#[prelude_import] +#[allow(unused_imports)] +use core::prelude::v1::*; + #[path = "mod.rs"] mod core_simd; pub use self::core_simd::simd; diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index ee0926bcae8..2d8b48a9a8f 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -4,6 +4,7 @@ use crate::simd::{ ptr::{SimdConstPtr, SimdMutPtr}, LaneCount, Mask, MaskElement, SupportedLaneCount, Swizzle, }; +use core::convert::{TryFrom, TryInto}; /// A SIMD vector with the shape of `[T; N]` but the operations of `T`. /// |
