File tree 1 file changed +4
-6
lines changed
crates/core_simd/src/elements 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,9 @@ pub trait SimdFloat: Copy + Sealed {
56
56
/// which saturates on conversion.
57
57
///
58
58
/// [cast]: Simd::cast
59
- unsafe fn to_int_unchecked < I > ( self ) -> Self :: Cast < I >
59
+ unsafe fn to_int_unchecked < I : SimdCast > ( self ) -> Self :: Cast < I >
60
60
where
61
- Self :: Scalar : core:: convert:: FloatToInt < I > + SimdCast ,
62
- I : SimdCast ;
61
+ Self :: Scalar : core:: convert:: FloatToInt < I > ;
63
62
64
63
/// Raw transmutation to an unsigned integer vector type with the
65
64
/// same size and number of lanes.
@@ -263,10 +262,9 @@ macro_rules! impl_trait {
263
262
264
263
#[ inline]
265
264
#[ cfg_attr( miri, track_caller) ] // even without panics, this helps for Miri backtraces
266
- unsafe fn to_int_unchecked<I >( self ) -> Self :: Cast <I >
265
+ unsafe fn to_int_unchecked<I : SimdCast >( self ) -> Self :: Cast <I >
267
266
where
268
- Self :: Scalar : core:: convert:: FloatToInt <I > + SimdCast ,
269
- I : SimdCast ,
267
+ Self :: Scalar : core:: convert:: FloatToInt <I >,
270
268
{
271
269
// Safety: supported types are guaranteed by SimdCast, the caller is responsible for the extra invariants
272
270
unsafe { intrinsics:: simd_cast( self ) }
You can’t perform that action at this time.
0 commit comments