Skip to content

Commit

Permalink
Ignore unused_macro_rules warning in test macros
Browse files Browse the repository at this point in the history
    warning: 1st rule of macro `btreeset` is never used
     --> test_suite/tests/macros/mod.rs:5:5
      |
    5 |     () => {
      |     ^^
      |
      = note: `#[warn(unused_macro_rules)]` on by default

    warning: 1st rule of macro `hashset` is never used
      --> test_suite/tests/macros/mod.rs:27:5
       |
    27 |     () => {
       |     ^^

    warning: 1st rule of macro `hashmap` is never used
      --> test_suite/tests/macros/mod.rs:44:5
       |
    44 |     () => {
       |     ^^

    warning: 1st rule of macro `hashset` is never used
      --> test_suite/tests/macros/mod.rs:27:5
       |
    27 |     () => {
       |     ^^
       |
       = note: `#[warn(unused_macro_rules)]` on by default
  • Loading branch information
dtolnay committed May 13, 2022
1 parent 2eed86c commit 819f90d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_suite/tests/macros/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_macro_rules)]

use serde_test::Token;
use std::iter;

Expand Down

0 comments on commit 819f90d

Please sign in to comment.