commit | a2409da1f7fae5ca3654d79d66216f2770832f52 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Mon Jan 22 03:27:58 2018 -0600 |
committer | GitHub <noreply@github.com> | Mon Jan 22 03:27:58 2018 -0600 |
tree | 58aa716a127d75f6e00ec2c1fe24df04d80b3ce8 | |
parent | 8fa15cc9b93bffdb93ac05c374eca25157bcf281 [diff] | |
parent | a79b404c9dc08aed6dbe7bf07c20647666e9f65d [diff] |
Auto merge of #1232 - emilio:enum-colon-bool, r=pepyakin 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