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: Try to reasonably handle enum : bool. #1232

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Jan 22, 2018

Just use the repr name we generate, since we generate constants for that.

It's not worth trying to guess the actual type to use IMO.

Bindings lose a bit of portability I guess, but that's really a lost bet
already, so instead of special-casing bool and map constants, let's use a
consistent representation everywhere.

Fixes #1145

Just use the repr name we generate, since we generate constants for that.

It's not worth trying to guess the actual type to use IMO.

Bindings lose a bit of portability I guess, but that's really a lost bet
already, so instead of special-casing bool and map constants, let's use a
consistent representation everywhere.

Fixes rust-lang#1145
@emilio
Copy link
Contributor Author

emilio commented Jan 22, 2018

r? @fitzgen or @pepyakin

@pepyakin
Copy link
Contributor

@bors-servo r+

Looks good to me!

@bors-servo
Copy link

📌 Commit a79b404 has been approved by pepyakin

@bors-servo
Copy link

⌛ Testing commit a79b404 with merge a2409da...

bors-servo pushed a commit that referenced this pull request Jan 22, 2018
codegen: Try to reasonably handle enum : bool.

Just use the repr name we generate, since we generate constants for that.

It's not worth trying to guess the actual type to use IMO.

Bindings lose a bit of portability I guess, but that's really a lost bet
already, so instead of special-casing bool and map constants, let's use a
consistent representation everywhere.

Fixes #1145
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: pepyakin
Pushing a2409da to master...

@bors-servo bors-servo merged commit a79b404 into rust-lang:master Jan 22, 2018
@emilio emilio deleted the enum-colon-bool branch January 22, 2018 10:43
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.

5 participants