Skip to content
New issue

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

Added non-exhaustive enums to the CLI #2847

Merged
merged 4 commits into from
Jun 25, 2024

Conversation

rdelfin
Copy link
Contributor

@rdelfin rdelfin commented Jun 10, 2024

Currently the CLI allows for all other enum builder options except for non-exhaustive rustified enums. This PR fixes the omission.

Solves #2846

@rdelfin
Copy link
Contributor Author

rdelfin commented Jun 10, 2024

Clippy errors look unrelated to my change but feel free to correct me

bindgen/lib.rs Outdated
name_file.ends_with(".hxx") ||
name_file.ends_with(".hh") ||
name_file.ends_with(".h++")
name_file.ends_with(".hpp")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... This must be my rustfmt settings. Strange, I'd have expected my IDE to grab them from the rustfmt.toml at the top

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need nightly rust to format bindgen's code

Copy link
Contributor

@pvdrz pvdrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. Could you document this change in the Changelog? otherwise it looks good to me :)

bindgen/lib.rs Outdated Show resolved Hide resolved
@rdelfin
Copy link
Contributor Author

rdelfin commented Jun 22, 2024

Sorry for the delay! Should be sorted now

@rdelfin rdelfin requested review from pvdrz and kulp June 22, 2024 12:37
@pvdrz pvdrz enabled auto-merge June 25, 2024 17:39
@pvdrz pvdrz added this pull request to the merge queue Jun 25, 2024
Merged via the queue into rust-lang:main with commit 9d5991b Jun 25, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants