Ensure repr and values of tags! variants
This commit is contained in:
1 parent
ee8d13249e
commit
fee650d7f6
2 files changed
+15
-1
No files matched your search
+2
-1
@@ -10,8 +10,9 @@ macro_rules! tags {
|
||||
$( #[$enum_attr] )*
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
|
||||
#[non_exhaustive]
|
||||
#[repr($ty)]
|
||||
pub enum $name {
|
||||
$($(#[$ident_attr])* $tag,)*
|
||||
$($(#[$ident_attr])* $tag = $val,)*
|
||||
$(
|
||||
#[$unknown_meta]
|
||||
Unknown($ty),
|
||||
|
||||
Reference in new issue
Block a user