Rollup merge of #97009 - fortanix:raoul/unused_macro_sgx, r=thomcc

Allow `unused_macro_rules` in path tests

PR #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.
This commit is contained in:
Yuki Okushi 2022-05-17 19:01:30 +09:00 committed by GitHub
commit 17eebcd4c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@ use crate::rc::Rc;
use crate::sync::Arc;
use core::hint::black_box;
#[allow(unknown_lints, unused_macro_rules)]
macro_rules! t (
($path:expr, iter: $iter:expr) => (
{