Skip to content

Commit

Permalink
Allow unused macro rules for two macros (rust-lang#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 authored May 9, 2022
1 parent 4ae38a1 commit 18916ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core_arch/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ macro_rules! types {
)*)
}

#[allow(unused_macros)]
#[allow(unused)]
macro_rules! simd_shuffle2 {
($x:expr, $y:expr, <$(const $imm:ident : $ty:ty),+ $(,)?> $idx:expr $(,)?) => {{
struct ConstParam<$(const $imm: $ty),+>;
Expand Down
1 change: 1 addition & 0 deletions crates/core_arch/src/powerpc/altivec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ mod sealed {

}

#[allow(unknown_lints, unused_macro_rules)]
macro_rules! impl_vec_trait {
([$Trait:ident $m:ident] $fun:ident ($a:ty)) => {
impl $Trait for $a {
Expand Down

0 comments on commit 18916ad

Please sign in to comment.