Put the user-provided attributes first

`#[derive]` should always come after any proc macro attribute.
This commit is contained in:
Anthony Ramine
2019-03-14 11:50:34 +01:00
parent 420ad1f03b
commit 28a380f1cb
+1 -1
View File
@@ -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,
}