Skip to content

Commit

Permalink
Rollup merge of rust-lang#97009 - fortanix:raoul/unused_macro_sgx, r=…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
JohnTitor authored May 17, 2022
2 parents 15aa2d6 + 3e252a7 commit 17eebcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/path/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => (
{
Expand Down

0 comments on commit 17eebcd

Please sign in to comment.