Skip to content

Commit bcc4fbb

Browse files
committed
Suppress some lints that trigger don't trigger in all cfg's
1 parent 8527701 commit bcc4fbb

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

lexical-benchmark/input.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ macro_rules! json_data {
8989
}
9090

9191
/// Generate an array of values as static data
92+
#[allow(unused_macro_rules)]
9293
macro_rules! static_data {
9394
($($fn:ident $cb:ident $f1:ident $t:tt ; )*) => ($(
9495
fn $fn() -> &'static [$t] {

lexical-parse-float/src/index.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ macro_rules! index_unchecked {
1616

1717
/// Index a buffer and get a mutable reference, without bounds checking.
1818
#[cfg(not(feature = "safe"))]
19+
#[allow(unused_macro_rules)]
1920
macro_rules! index_unchecked_mut {
2021
($x:ident[$i:expr]) => {
2122
*$x.get_unchecked_mut($i)
@@ -32,6 +33,7 @@ macro_rules! index_unchecked {
3233

3334
/// Index a buffer and get a mutable reference, with bounds checking.
3435
#[cfg(feature = "safe")]
36+
#[allow(unused_macro_rules)]
3537
macro_rules! index_unchecked_mut {
3638
($x:ident[$i:expr]) => {
3739
$x[$i]

lexical-write-integer/src/index.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ macro_rules! index_unchecked {
2222
// The newer version of the lint is `unused_macro_rules`, but this isn't
2323
// supported until nightly-2022-05-12.
2424
#[cfg(not(feature = "safe"))]
25+
#[allow(unused_macro_rules)]
2526
macro_rules! index_unchecked_mut {
2627
($x:ident[$i:expr]) => {
2728
*$x.get_unchecked_mut($i)
@@ -53,6 +54,7 @@ macro_rules! index_unchecked {
5354
// The newer version of the lint is `unused_macro_rules`, but this isn't
5455
// supported until nightly-2022-05-12.
5556
#[cfg(feature = "safe")]
57+
#[allow(unused_macro_rules)]
5658
macro_rules! index_unchecked_mut {
5759
($x:ident[$i:expr]) => {
5860
$x[$i]

0 commit comments

Comments
 (0)