rust-lang/portable-simd#279: Silence clippy false alarms

This commit is contained in:
Caleb Zulawski 2022-04-25 16:32:56 -04:00 committed by GitHub
parent 9718639d61
commit af53b5de24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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.