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

Fix #1571: For rust-target >= 1.30, make {__BindgenBitfieldUnit,__BindgenUnionField,__IncompleteArrayField}::new const fn #1573

Merged
merged 4 commits into from Jun 6, 2019

Conversation

Wallacoloo
Copy link
Contributor

This allows one to create static instances of these types or use them inside other const fns. Fixes #1571

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me :)

@emilio emilio merged commit d55cce5 into rust-lang:master Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__BindgenBitfieldUnit::new isn't a const fn for rust-target >= 1.30
3 participants