File tree Expand file tree Collapse file tree 13 files changed +30
-0
lines changed
lowpan/lib/spinel_pack/src
network/netstack3/core/src Expand file tree Collapse file tree 13 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ type Accumulator = u64;
161
161
// on other platforms.
162
162
const SMALL_BUF_THRESHOLD : usize = 64 ;
163
163
164
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
165
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
164
166
/// The following macro unrolls operations on u16's to wider integers.
165
167
///
166
168
/// # Arguments
Original file line number Diff line number Diff line change @@ -226,6 +226,8 @@ macro_rules! __create_protocol_enum_inner {
226
226
} ;
227
227
}
228
228
229
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
230
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
229
231
/// Create an enum representing a protocol number (such as IP protocol or
230
232
/// EtherType).
231
233
///
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ macro_rules! impl_try_array_owned_unpack_sized(
27
27
}
28
28
) ;
29
29
30
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
31
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
30
32
macro_rules! impl_try_pack_unpack_as_data(
31
33
( u8 ) => {
32
34
// We skip u8.
Original file line number Diff line number Diff line change 17
17
18
18
// This macro is used by tests in both the `igmp` and `mld` modules.
19
19
20
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
21
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
20
22
/// Assert that the GMP state machine for `$group` is in the given state.
21
23
///
22
24
/// `$ctx` is a `context::testutil::DummyCtx` whose state contains a `groups:
Original file line number Diff line number Diff line change 4
4
5
5
//! Macros used in Netstack3.
6
6
7
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
8
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
7
9
macro_rules! log_unimplemented {
8
10
( $nocrash: expr, $fmt: expr $( , $arg: expr) * ) => { {
9
11
Original file line number Diff line number Diff line change 16
16
} ,
17
17
} ;
18
18
19
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
20
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
19
21
macro_rules! gen_comment {
20
22
( $x: expr) => {
21
23
#[ doc = $x]
Original file line number Diff line number Diff line change 14
14
15
15
use std:: fmt:: Debug ;
16
16
17
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
18
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
17
19
macro_rules! assert_abort {
18
20
( $cond: expr) => ( {
19
21
let cond = $cond;
@@ -30,6 +32,8 @@ macro_rules! assert_abort {
30
32
} ) ;
31
33
}
32
34
35
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
36
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
33
37
macro_rules! assert_abort_eq {
34
38
( $left: expr, $right: expr) => ( {
35
39
match ( & $left, & $right) {
@@ -72,6 +76,8 @@ macro_rules! unreachable_abort {
72
76
} } ;
73
77
}
74
78
79
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
80
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
75
81
macro_rules! panic_abort {
76
82
( ) => ( {
77
83
panic_abort!( "explicit panic" )
Original file line number Diff line number Diff line change @@ -798,6 +798,8 @@ pub fn rsa_verify_pss_mgf1(
798
798
}
799
799
}
800
800
801
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
802
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
801
803
/// Implements `CStackWrapper` for a hash context type.
802
804
///
803
805
/// The caller provides doc comments, a public method name, and a private
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ macro_rules! sealed {
20
20
} ;
21
21
}
22
22
23
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
24
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
23
25
macro_rules! impl_traits {
24
26
( @inner $name: ident, CNew => $fn: tt) => {
25
27
c_new!( $name, $fn) ;
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ impl AsRef<str> for Path {
182
182
mod tests {
183
183
use super :: * ;
184
184
185
+ #[ allow( unknown_lints) ] // TODO(fxbug.dev/99424): remove this after toolchain roll when lint is known
186
+ #[ allow( unused_macro_rules) ] // TODO(fxbug.dev/100318): remove unused macro rules and re-enable
185
187
macro_rules! simple_construction_test {
186
188
( path: $str: expr, $path: ident => $body: block) => {
187
189
match Path :: validate_and_split( $str) {
You can’t perform that action at this time.
0 commit comments