Skip to content

Commit 17eebcd

Browse files
authored
Rollup merge of rust-lang#97009 - fortanix:raoul/unused_macro_sgx, r=thomcc
Allow `unused_macro_rules` in path tests PR rust-lang#96150 adds a new lint to warn about unused macro rules (arms/matchers). This causes errors in `library/std/src/path/tests.rs` on the `x86_64-fortanix-unknown-sgx` platform. This PR fixes compilation errors on that platform by allowing unused macro rules.
2 parents 15aa2d6 + 3e252a7 commit 17eebcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/path/tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use crate::rc::Rc;
77
use crate::sync::Arc;
88
use core::hint::black_box;
99

10+
#[allow(unknown_lints, unused_macro_rules)]
1011
macro_rules! t (
1112
($path:expr, iter: $iter:expr) => (
1213
{

0 commit comments

Comments
 (0)