We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arbitrary_enum_discriminant
For now, rustfmt simple removes the explicit discriminant value of the enum variant that has fields.
rustfmt
#[repr(u32)] enum E { A { a: u32 } = 0x100, }
become
#[repr(u32)] enum E { A { a: u32 }, }
The text was updated successfully, but these errors were encountered:
do not remove discriminant value if exists (rust-lang#3771)
afffea8
do not remove discriminant value if exists (#3771) (#3772)
950b288
Successfully merging a pull request may close this issue.
For now,
rustfmt
simple removes the explicit discriminant value of the enum variant that has fields.become
The text was updated successfully, but these errors were encountered: