about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2021-02-16 10:02:02 -0800
committerJubilee Young <workingjubilee@gmail.com>2021-02-16 10:04:50 -0800
commit2f2a463c0ddd4f22e29c3ad7e4a8ed8f1090e7a8 (patch)
tree88349d16d5ae2418e9bab068b330c8a363fb5c08
parentf85bd249c0aec8df978aa1a87b3689a39d0231e9 (diff)
downloadrust-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.rs8
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 }
     }
 }