Allow unused macro rules for two macros (#1305)

This commit is contained in:
est31
2022-05-10 01:48:31 +02:00
committed by GitHub
parent f6cf8d45b0
commit cf471eb26e
2 changed files with 2 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ macro_rules! types {
)*) )*)
} }
#[allow(unused_macros)] #[allow(unused)]
macro_rules! simd_shuffle2 { macro_rules! simd_shuffle2 {
($x:expr, $y:expr, <$(const $imm:ident : $ty:ty),+ $(,)?> $idx:expr $(,)?) => {{ ($x:expr, $y:expr, <$(const $imm:ident : $ty:ty),+ $(,)?> $idx:expr $(,)?) => {{
struct ConstParam<$(const $imm: $ty),+>; struct ConstParam<$(const $imm: $ty),+>;

View File

@@ -356,6 +356,7 @@ mod sealed {
} }
#[allow(unknown_lints, unused_macro_rules)]
macro_rules! impl_vec_trait { macro_rules! impl_vec_trait {
([$Trait:ident $m:ident] $fun:ident ($a:ty)) => { ([$Trait:ident $m:ident] $fun:ident ($a:ty)) => {
impl $Trait for $a { impl $Trait for $a {