rust-lang/portable-simd#279: Silence clippy false alarms
This commit is contained in:
parent
9718639d61
commit
af53b5de24
@ -48,6 +48,7 @@ macro_rules! unsafe_base {
|
||||
// cg_clif defaults to this, and scalar MIR shifts also default to wrapping
|
||||
macro_rules! wrap_bitshift {
|
||||
($lhs:ident, $rhs:ident, {$simd_call:ident}, $int:ident) => {
|
||||
#[allow(clippy::suspicious_arithmetic_impl)]
|
||||
unsafe {
|
||||
$crate::simd::intrinsics::$simd_call(
|
||||
$lhs,
|
||||
|
@ -479,6 +479,7 @@ where
|
||||
mask.all()
|
||||
}
|
||||
|
||||
#[allow(clippy::partialeq_ne_impl)]
|
||||
#[inline]
|
||||
fn ne(&self, other: &Self) -> bool {
|
||||
// Safety: All SIMD vectors are SimdPartialEq, and the comparison produces a valid mask.
|
||||
|
Loading…
x
Reference in New Issue
Block a user