Skip to content

Commit

Permalink
Put the user-provided attributes first
Browse files Browse the repository at this point in the history
`#[derive]` should always come after any proc macro attribute.
  • Loading branch information
nox committed Mar 14, 2019
1 parent bb53c19 commit 5580478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -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,
}
Expand Down

0 comments on commit 5580478

Please sign in to comment.