From accffbff8bf0072b69abaaf9010c3563af86b8d3 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 12 May 2022 22:03:14 -0700 Subject: [PATCH] Fix unused macro rule in no-default-features mode 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 --- src/macros.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/macros.rs b/src/macros.rs index 5473dd3faf..353b9a2c3c 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -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)*]