Skip to content

Commit 26edb85

Browse files
committed
Allow unused macro rules for two macros
The unused macro rules lint is an upcoming lint added to the rust compiler. This commit prepares for the introduction so that the CI passes.
1 parent 4ae38a1 commit 26edb85

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/core_arch/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ macro_rules! types {
9393
)*)
9494
}
9595

96-
#[allow(unused_macros)]
96+
#[allow(unused)]
9797
macro_rules! simd_shuffle2 {
9898
($x:expr, $y:expr, <$(const $imm:ident : $ty:ty),+ $(,)?> $idx:expr $(,)?) => {{
9999
struct ConstParam<$(const $imm: $ty),+>;

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ mod sealed {
356356

357357
}
358358

359+
#[allow(unknown_lints, unused_macro_rules)]
359360
macro_rules! impl_vec_trait {
360361
([$Trait:ident $m:ident] $fun:ident ($a:ty)) => {
361362
impl $Trait for $a {

0 commit comments

Comments
 (0)