Ensure repr and values of tags! variants

This commit is contained in:
A. Molzer committed 2026-01-08 19:53:47 +01:00
1 parent ee8d13249e
commit fee650d7f6
2 files changed
+15 -1

No files matched your search

+2 -1
View File
@@ -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),