Skip to content

Commit e57b2cb

Browse files
author
bors-servo
authored
Auto merge of #512 - emilio:bitfields, r=fitzgen
Rework how bitfields are handled. This fixes #111, and unblocks stylo. The problem with this as of right now is that it drops the accessors (though before that this code was buggy so I'm not sure it's a loss). I can probably try to re-implement those (though it'd be more complex). WDYT @fitzgen? Also, note that I changed the max_align_nonce because it was incorrect (we shouldn't generate padding, because `long double` was `128` bits).
2 parents 6774efe + 98f43d0 commit e57b2cb

22 files changed

+554
-991
lines changed

Cargo.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "bindgen"
1313
readme = "README.md"
1414
repository = "https://github.com/servo/rust-bindgen"
1515
documentation = "https://docs.rs/bindgen"
16-
version = "0.21.3"
16+
version = "0.22.0"
1717
build = "build.rs"
1818

1919
exclude = ["tests/headers", "tests/expectations", "bindgen-integration", "ci"]

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ mod codegen {
1111
quasi_codegen::expand(&src, &dst).unwrap();
1212
println!("cargo:rerun-if-changed=src/codegen/mod.rs");
1313
println!("cargo:rerun-if-changed=src/codegen/helpers.rs");
14+
println!("cargo:rerun-if-changed=src/codegen/struct_layout.rs");
1415
}
1516
}
1617

0 commit comments

Comments
 (0)