From 5580478557d30157032b20bf2927da734cec2355 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 9e1bcfd6..39803458 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, }