Skip to content

Commit

Permalink
Fix unused macro rule in no-default-features mode
Browse files Browse the repository at this point in the history
    warning: 1st rule of macro `ast_struct` is never used
     --> src/macros.rs:2:5
      |
    2 | /     (
    3 | |         [$($attrs_pub:tt)*]
    4 | |         struct $name:ident #full $($rest:tt)*
    5 | |     ) => {
      | |_____^
      |
      = note: `#[warn(unused_macro_rules)]` on by default
  • Loading branch information
dtolnay committed May 13, 2022
1 parent e3798ce commit accffbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[allow(unknown_lints)]
#[cfg_attr(not(any(feature = "full", feature = "derive")), allow(unused_macro_rules))]
macro_rules! ast_struct {
(
[$($attrs_pub:tt)*]
Expand Down

0 comments on commit accffbf

Please sign in to comment.