[rust] allow unused-macro-rules to unblock toolchain roll

Bug: 100318
Change-Id: Ided9428282c66e63cda934a5f456223750703179
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/679506
Reviewed-by: Joseph Ryan <josephry@google.com>
Fuchsia-Auto-Submit: Dan Johnson <computerdruid@google.com>
Reviewed-by: Tyler Mandry <tmandry@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/src/connectivity/lib/internet-checksum/src/lib.rs b/src/connectivity/lib/internet-checksum/src/lib.rs
index d0100ed..0a0b1b7 100644
--- a/src/connectivity/lib/internet-checksum/src/lib.rs
+++ b/src/connectivity/lib/internet-checksum/src/lib.rs
@@ -161,6 +161,8 @@
 // on other platforms.
 const SMALL_BUF_THRESHOLD: usize = 64;
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// The following macro unrolls operations on u16's to wider integers.
 ///
 /// # Arguments
diff --git a/src/connectivity/lib/packet-formats/src/macros.rs b/src/connectivity/lib/packet-formats/src/macros.rs
index 6af948e..ccef766 100644
--- a/src/connectivity/lib/packet-formats/src/macros.rs
+++ b/src/connectivity/lib/packet-formats/src/macros.rs
@@ -226,6 +226,8 @@
     };
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// Create an enum representing a protocol number (such as IP protocol or
 /// EtherType).
 ///
diff --git a/src/connectivity/lowpan/lib/spinel_pack/src/primitives.rs b/src/connectivity/lowpan/lib/spinel_pack/src/primitives.rs
index b0c84d8..cc83508 100644
--- a/src/connectivity/lowpan/lib/spinel_pack/src/primitives.rs
+++ b/src/connectivity/lowpan/lib/spinel_pack/src/primitives.rs
@@ -27,6 +27,8 @@
     }
 );
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! impl_try_pack_unpack_as_data(
     (u8) => {
         // We skip u8.
diff --git a/src/connectivity/network/netstack3/core/src/ip/gmp/mod.rs b/src/connectivity/network/netstack3/core/src/ip/gmp/mod.rs
index 6a6d83f..587d5e7 100644
--- a/src/connectivity/network/netstack3/core/src/ip/gmp/mod.rs
+++ b/src/connectivity/network/netstack3/core/src/ip/gmp/mod.rs
@@ -17,6 +17,8 @@
 
 // This macro is used by tests in both the `igmp` and `mld` modules.
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// Assert that the GMP state machine for `$group` is in the given state.
 ///
 /// `$ctx` is a `context::testutil::DummyCtx` whose state contains a `groups:
diff --git a/src/connectivity/network/netstack3/core/src/macros.rs b/src/connectivity/network/netstack3/core/src/macros.rs
index e128d0d..8a04145 100644
--- a/src/connectivity/network/netstack3/core/src/macros.rs
+++ b/src/connectivity/network/netstack3/core/src/macros.rs
@@ -4,6 +4,8 @@
 
 //! Macros used in Netstack3.
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! log_unimplemented {
     ($nocrash:expr, $fmt:expr $(,$arg:expr)*) => {{
 
diff --git a/src/lib/cobalt/rust/src/sender.rs b/src/lib/cobalt/rust/src/sender.rs
index e965793..1251b07 100644
--- a/src/lib/cobalt/rust/src/sender.rs
+++ b/src/lib/cobalt/rust/src/sender.rs
@@ -16,6 +16,8 @@
     },
 };
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! gen_comment {
     ($x:expr) => {
         #[doc = $x]
diff --git a/src/lib/mundane/src/boringssl/abort.rs b/src/lib/mundane/src/boringssl/abort.rs
index f37f1a9..9835759 100644
--- a/src/lib/mundane/src/boringssl/abort.rs
+++ b/src/lib/mundane/src/boringssl/abort.rs
@@ -14,6 +14,8 @@
 
 use std::fmt::Debug;
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! assert_abort {
     ($cond:expr) => ({
         let cond = $cond;
@@ -30,6 +32,8 @@
     });
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! assert_abort_eq {
     ($left:expr, $right:expr) => ({
         match (&$left, &$right) {
@@ -72,6 +76,8 @@
     }};
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! panic_abort {
     () => ({
         panic_abort!("explicit panic")
diff --git a/src/lib/mundane/src/boringssl/mod.rs b/src/lib/mundane/src/boringssl/mod.rs
index 8cecb78..4373f84 100644
--- a/src/lib/mundane/src/boringssl/mod.rs
+++ b/src/lib/mundane/src/boringssl/mod.rs
@@ -798,6 +798,8 @@
     }
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// Implements `CStackWrapper` for a hash context type.
 ///
 /// The caller provides doc comments, a public method name, and a private
diff --git a/src/lib/mundane/src/boringssl/wrapper.rs b/src/lib/mundane/src/boringssl/wrapper.rs
index 0d41c88..dded5a9 100644
--- a/src/lib/mundane/src/boringssl/wrapper.rs
+++ b/src/lib/mundane/src/boringssl/wrapper.rs
@@ -20,6 +20,8 @@
     };
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 macro_rules! impl_traits {
     (@inner $name:ident, CNew => $fn:tt) => {
         c_new!($name, $fn);
diff --git a/src/lib/storage/vfs/rust/src/path.rs b/src/lib/storage/vfs/rust/src/path.rs
index 7d0f37c..092158d 100644
--- a/src/lib/storage/vfs/rust/src/path.rs
+++ b/src/lib/storage/vfs/rust/src/path.rs
@@ -182,6 +182,8 @@
 mod tests {
     use super::*;
 
+    #[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+    #[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
     macro_rules! simple_construction_test {
         (path: $str:expr, $path:ident => $body:block) => {
             match Path::validate_and_split($str) {
diff --git a/src/power/power-manager/src/types.rs b/src/power/power-manager/src/types.rs
index f90b003..9845fb1 100644
--- a/src/power/power-manager/src/types.rs
+++ b/src/power/power-manager/src/types.rs
@@ -50,6 +50,8 @@
     };
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// Defines a measurement unit, with an underlying scalar type.
 macro_rules! define_unit {
     ( $unit_type:ident, f32 ) => {
diff --git a/src/proc/bin/starnix/fs/fs_node.rs b/src/proc/bin/starnix/fs/fs_node.rs
index fc32d15..3a6d234 100644
--- a/src/proc/bin/starnix/fs/fs_node.rs
+++ b/src/proc/bin/starnix/fs/fs_node.rs
@@ -234,6 +234,8 @@
     };
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// Implements [`FsNodeOps::set_xattr`] by delegating to another [`FsNodeOps`]
 /// object.
 macro_rules! fs_node_impl_xattr_delegate {
diff --git a/src/proc/bin/starnix/mutable_state.rs b/src/proc/bin/starnix/mutable_state.rs
index d054d15..9705db8 100644
--- a/src/proc/bin/starnix/mutable_state.rs
+++ b/src/proc/bin/starnix/mutable_state.rs
@@ -275,6 +275,8 @@
     }
 }
 
+#[allow(unknown_lints)] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
+#[allow(unused_macro_rules)] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
 /// This macro matches the methods inside a `state_implementation!` macro depending on their
 /// visibility and mutability so that the `state_implementation!` might dispatch these to the right
 /// trait or implementation.