Skip to content

Commit 0cf23c8

Browse files
authored
Merge pull request #83 from Xiphoseer/patch-3
Suppress some lints that trigger don't trigger in all cfg's
2 parents 0fdaa9f + 1dd90f1 commit 0cf23c8

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
@@ -90,6 +90,7 @@ macro_rules! json_data {
9090
}
9191

9292
/// Generate an array of values as static data
93+
#[allow(unknown_lints, unused_macro_rules)]
9394
macro_rules! static_data {
9495
($($fn:ident $cb:ident $f1:ident $t:tt ; )*) => ($(
9596
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(unknown_lints, 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(unknown_lints, 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
@@ -21,6 +21,7 @@ macro_rules! index_unchecked {
2121
// The newer version of the lint is `unused_macro_rules`, but this isn't
2222
// supported until nightly-2022-05-12.
2323
#[cfg(not(feature = "safe"))]
24+
#[allow(unknown_lints, unused_macro_rules)]
2425
macro_rules! index_unchecked_mut {
2526
($x:ident[$i:expr]) => {
2627
*$x.get_unchecked_mut($i)
@@ -52,6 +53,7 @@ macro_rules! index_unchecked {
5253
// The newer version of the lint is `unused_macro_rules`, but this isn't
5354
// supported until nightly-2022-05-12.
5455
#[cfg(feature = "safe")]
56+
#[allow(unknown_lints, unused_macro_rules)]
5557
macro_rules! index_unchecked_mut {
5658
($x:ident[$i:expr]) => {
5759
$x[$i]

0 commit comments

Comments
 (0)