From 28a380f1cbfae5ab9f188784e496ce474c9facec Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 14 Mar 2019 11:50:34 +0100 Subject: [PATCH] Put the user-provided attributes first `#[derive]` should always come after any proc macro attribute. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9e1bcfd..3980345 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -398,8 +398,8 @@ macro_rules! __bitflags { )+ } ) => { - #[derive(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)] $(#[$outer])* + #[derive(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)] $($vis)* struct $BitFlags { bits: $T, }