File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
lexical-write-integer/src Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ macro_rules! json_data {
90
90
}
91
91
92
92
/// Generate an array of values as static data
93
+ #[ allow( unknown_lints, unused_macro_rules) ]
93
94
macro_rules! static_data {
94
95
( $( $fn: ident $cb: ident $f1: ident $t: tt ; ) * ) => ( $(
95
96
fn $fn( ) -> & ' static [ $t] {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ macro_rules! index_unchecked {
16
16
17
17
/// Index a buffer and get a mutable reference, without bounds checking.
18
18
#[ cfg( not( feature = "safe" ) ) ]
19
+ #[ allow( unknown_lints, unused_macro_rules) ]
19
20
macro_rules! index_unchecked_mut {
20
21
( $x: ident[ $i: expr] ) => {
21
22
* $x. get_unchecked_mut( $i)
@@ -32,6 +33,7 @@ macro_rules! index_unchecked {
32
33
33
34
/// Index a buffer and get a mutable reference, with bounds checking.
34
35
#[ cfg( feature = "safe" ) ]
36
+ #[ allow( unknown_lints, unused_macro_rules) ]
35
37
macro_rules! index_unchecked_mut {
36
38
( $x: ident[ $i: expr] ) => {
37
39
$x[ $i]
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ macro_rules! index_unchecked {
21
21
// The newer version of the lint is `unused_macro_rules`, but this isn't
22
22
// supported until nightly-2022-05-12.
23
23
#[ cfg( not( feature = "safe" ) ) ]
24
+ #[ allow( unknown_lints, unused_macro_rules) ]
24
25
macro_rules! index_unchecked_mut {
25
26
( $x: ident[ $i: expr] ) => {
26
27
* $x. get_unchecked_mut( $i)
@@ -52,6 +53,7 @@ macro_rules! index_unchecked {
52
53
// The newer version of the lint is `unused_macro_rules`, but this isn't
53
54
// supported until nightly-2022-05-12.
54
55
#[ cfg( feature = "safe" ) ]
56
+ #[ allow( unknown_lints, unused_macro_rules) ]
55
57
macro_rules! index_unchecked_mut {
56
58
( $x: ident[ $i: expr] ) => {
57
59
$x[ $i]
You can’t perform that action at this time.
0 commit comments