about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-05-17 19:01:30 +0900
committerGitHub <noreply@github.com>2022-05-17 19:01:30 +0900
commit17eebcd4c31700b62bc63dcd0e823617aa51bfed (patch)
treeabf475563e62301f32552f438f7ce087b52f0b50
parent15aa2d61895a5b41100c15a3ef98c0f895d1a1b6 (diff)
parent3e252a7ffc5678e56b2796262a0b3f83088373da (diff)
downloadrust-17eebcd4c31700b62bc63dcd0e823617aa51bfed.tar.gz
rust-17eebcd4c31700b62bc63dcd0e823617aa51bfed.zip
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.
-rw-r--r--library/std/src/path/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/path/tests.rs b/library/std/src/path/tests.rs
index 0d8ea29c2be..351cf698810 100644
--- a/library/std/src/path/tests.rs
+++ b/library/std/src/path/tests.rs
@@ -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) => (
         {