Skip to content

Commit

Permalink
Auto merge of #336 - JustForFun88:unused_macros, r=Amanieu
Browse files Browse the repository at this point in the history
 Allow unused macro rules for macro `cfg_if`.

The unused macro rules lint is an new lint for the rust compiler: [rust-lang/rust#96150](rust-lang/rust#96150)
  • Loading branch information
bors committed May 16, 2022
2 parents 3b0a211 + 9a3f7a3 commit 7c518c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// See the cfg-if crate.
#[allow(unused_macro_rules)]
macro_rules! cfg_if {
// match if/else chains with a final `else`
($(
Expand Down

0 comments on commit 7c518c7

Please sign in to comment.