diff --git a/lexical-benchmark/input.rs b/lexical-benchmark/input.rs index 642e69a5..b43fc403 100644 --- a/lexical-benchmark/input.rs +++ b/lexical-benchmark/input.rs @@ -90,6 +90,7 @@ macro_rules! json_data { } /// Generate an array of values as static data +#[allow(unknown_lints, unused_macro_rules)] macro_rules! static_data { ($($fn:ident $cb:ident $f1:ident $t:tt ; )*) => ($( fn $fn() -> &'static [$t] { diff --git a/lexical-parse-float/src/index.rs b/lexical-parse-float/src/index.rs index fa2ddc9f..b0b5b152 100644 --- a/lexical-parse-float/src/index.rs +++ b/lexical-parse-float/src/index.rs @@ -16,6 +16,7 @@ macro_rules! index_unchecked { /// Index a buffer and get a mutable reference, without bounds checking. #[cfg(not(feature = "safe"))] +#[allow(unknown_lints, unused_macro_rules)] macro_rules! index_unchecked_mut { ($x:ident[$i:expr]) => { *$x.get_unchecked_mut($i) @@ -32,6 +33,7 @@ macro_rules! index_unchecked { /// Index a buffer and get a mutable reference, with bounds checking. #[cfg(feature = "safe")] +#[allow(unknown_lints, unused_macro_rules)] macro_rules! index_unchecked_mut { ($x:ident[$i:expr]) => { $x[$i] diff --git a/lexical-write-integer/src/index.rs b/lexical-write-integer/src/index.rs index 050d1768..f032dc18 100644 --- a/lexical-write-integer/src/index.rs +++ b/lexical-write-integer/src/index.rs @@ -21,6 +21,7 @@ macro_rules! index_unchecked { // The newer version of the lint is `unused_macro_rules`, but this isn't // supported until nightly-2022-05-12. #[cfg(not(feature = "safe"))] +#[allow(unknown_lints, unused_macro_rules)] macro_rules! index_unchecked_mut { ($x:ident[$i:expr]) => { *$x.get_unchecked_mut($i) @@ -52,6 +53,7 @@ macro_rules! index_unchecked { // The newer version of the lint is `unused_macro_rules`, but this isn't // supported until nightly-2022-05-12. #[cfg(feature = "safe")] +#[allow(unknown_lints, unused_macro_rules)] macro_rules! index_unchecked_mut { ($x:ident[$i:expr]) => { $x[$i]