diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2021-02-16 10:02:02 -0800 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2021-02-16 10:04:50 -0800 |
| commit | 2f2a463c0ddd4f22e29c3ad7e4a8ed8f1090e7a8 (patch) | |
| tree | 88349d16d5ae2418e9bab068b330c8a363fb5c08 | |
| parent | f85bd249c0aec8df978aa1a87b3689a39d0231e9 (diff) | |
| download | rust-2f2a463c0ddd4f22e29c3ad7e4a8ed8f1090e7a8.tar.gz rust-2f2a463c0ddd4f22e29c3ad7e4a8ed8f1090e7a8.zip | |
Remove From<Scalar> for SimdTy impl
0. It was not being tested. 1. The possible conversions are ambiguous between splatting and setting a single value but zero-initializing the rest. 2. Splat works fine.
| -rw-r--r-- | crates/core_simd/src/macros.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/core_simd/src/macros.rs b/crates/core_simd/src/macros.rs index db90c4e3149..d78403ddb93 100644 --- a/crates/core_simd/src/macros.rs +++ b/crates/core_simd/src/macros.rs @@ -147,14 +147,6 @@ macro_rules! impl_vector { } } - // splat - impl<const LANES: usize> From<$type> for $name<LANES> where Self: crate::LanesAtMost64 { - #[inline] - fn from(value: $type) -> Self { - Self::splat(value) - } - } - impl_shuffle_2pow_lanes!{ $name } } } |
