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

codegen: Respect original repr for bitfield-like enums, add a constifying variant. #437

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Jan 24, 2017

r? @fitzgen

Fixes #430

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Nice :)

/// constant.
///
/// This makes bindgen generate constants instead of enums.
pub fn constified_enum<T: AsRef<str>>(mut self, arg: T) -> Builder {
Copy link
Member

Choose a reason for hiding this comment

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

Add documentation that this takes a regexp?

@fitzgen
Copy link
Member

fitzgen commented Jan 24, 2017

r=me with that small doc about regexps

@emilio emilio force-pushed the constify-all-enums branch from 4ed28b0 to 0df8441 Compare January 24, 2017 20:06
@emilio
Copy link
Contributor Author

emilio commented Jan 24, 2017

@bors-servo r=fitzgen

@bors-servo
Copy link

📌 Commit 0df8441 has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 0df8441 with merge 3885130...

bors-servo pushed a commit that referenced this pull request Jan 24, 2017
codegen: Respect original repr for bitfield-like enums, add a constifying variant.

r? @fitzgen

Fixes #430
@bors-servo
Copy link

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 0df8441 into rust-lang:master Jan 25, 2017
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.

4 participants