third_party_rust_syn/tests/macros
David Tolnay 189c60c649
Ignore unused_macro_rules warning in test macros
warning: 2nd rule of macro `snapshot_impl` is never used
      --> tests/macros/mod.rs:44:5
       |
    44 |     (($($expr:tt)*) as $t:ty, @$snapshot:literal) => {{
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: `#[warn(unused_macro_rules)]` on by default

    warning: 1st rule of macro `snapshot_impl` is never used
      --> tests/macros/mod.rs:37:5
       |
    37 |     (($expr:ident) as $t:ty, @$snapshot:literal) => {
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    warning: 3rd rule of macro `snapshot_impl` is never used
      --> tests/macros/mod.rs:52:5
       |
    52 |     (($($expr:tt)*) , @$snapshot:literal) => {{
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    warning: 2nd rule of macro `spanless_eq_enum` is never used
       --> tests/common/eq.rs:225:5
        |
    225 | /     {
    226 | |         $($name:ident)::+;
    227 | |         $([$($variant:ident)::+; $($fields:tt)*])*
    228 | |         $next:ident [$([$($named:tt)*])* $(![$ignore:tt])*] (!$i:tt $($field:tt)*)
    229 | |         $($rest:tt)*
    230 | |     } => {
        | |_____^
        |
        = note: `#[warn(unused_macro_rules)]` on by default
2022-05-12 21:45:06 -07:00
..
mod.rs Ignore unused_macro_rules warning in test macros 2022-05-12 21:45:06 -07:00