diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-05-19 16:40:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 16:40:04 -0500 |
commit | 25150ca64f8009ac53829a2daa031c8723684523 (patch) | |
tree | ce0efb4e7eda12c288e352e752c9ba6bdf7d5a7e /bindgen-integration/cpp/Test.h | |
parent | cabfac71fc454196656ff63e5cc761294896831d (diff) | |
parent | 15b72b785af3094788b6c60841a39962db11ffa9 (diff) |
Auto merge of #707 - fitzgen:bitfield-constructors, r=emilio
Add bitfield allocation unit constructors
This commit gives bindgen the ability to generate constructors for bitfield allocation units. This enables more ergonomic use of struct literals for bindings structs that contain bitfields.
Additionally, when we are generating unstable Rust, these constructors are marked as const functions. This enables the creation of const binding structs that contain bitfields. (Something necessary for Servo's usage of SpiderMonkey).
r? @emilio
Diffstat (limited to 'bindgen-integration/cpp/Test.h')
0 files changed, 0 insertions, 0 deletions