summaryrefslogtreecommitdiff
path: root/bindgen-integration/cpp
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-12-08 15:42:59 -0800
committerNick Fitzgerald <fitzgen@gmail.com>2017-12-12 14:13:26 -0600
commit43c43ba80f84704c5dc976e1669edf8e898286b3 (patch)
tree1b90299825aa17b46951b3635e9c5c25141fd252 /bindgen-integration/cpp
parentd9950d4f1c23c4eb5c6e07cab855c2bd985a6ed3 (diff)
Always add `repr(C)` to rustified enums
If we don't, then eddyb's recent layout optimizations will do unexpected things to them. We also need to handle empty `enum`s without variants. When `repr(C)` is on a Rust `enum`, it cannot be empty, so we need to add a dummy.
Diffstat (limited to 'bindgen-integration/cpp')
0 files changed, 0 insertions, 0 deletions