about summary refs log tree commit diff
path: root/library/stdarch/crates
diff options
context:
space:
mode:
authorest31 <est31@users.noreply.github.com>2022-05-10 01:48:31 +0200
committerGitHub <noreply@github.com>2022-05-10 00:48:31 +0100
commitcf471eb26efcd9968b1b64fda7c087efb8954d62 (patch)
tree7a1f884129506984d6932fd52282812de875faa9 /library/stdarch/crates
parentf6cf8d45b063eb90f8d6acca80edddeda089ed63 (diff)
downloadrust-cf471eb26efcd9968b1b64fda7c087efb8954d62.tar.gz
rust-cf471eb26efcd9968b1b64fda7c087efb8954d62.zip
Allow unused macro rules for two macros (#1305)
Diffstat (limited to 'library/stdarch/crates')
-rw-r--r--library/stdarch/crates/core_arch/src/macros.rs2
-rw-r--r--library/stdarch/crates/core_arch/src/powerpc/altivec.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/library/stdarch/crates/core_arch/src/macros.rs b/library/stdarch/crates/core_arch/src/macros.rs
index 5f68ff79f8a..bef232dff22 100644
--- a/library/stdarch/crates/core_arch/src/macros.rs
+++ b/library/stdarch/crates/core_arch/src/macros.rs
@@ -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),+>;
diff --git a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs
index 7d17cee7f8f..8b2be39dc7a 100644
--- a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs
+++ b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs
@@ -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 {