style: Update the Rust target version for bindgen.

This brings us alignas support and also associated constants for bitfield enums.

Differential Revision: https://phabricator.services.mozilla.com/D15334
This commit is contained in:
Emilio Cobos Álvarez 2018-12-25 23:09:29 +00:00
parent 8a6230e5a2
commit 8929087d83
7 changed files with 26 additions and 40 deletions

View file

@ -139,7 +139,9 @@ mod bindings {
// Disable rust unions, because we replace some types inside of
// them.
let mut builder = Builder::default().rust_target(RustTarget::Stable_1_0);
let mut builder = Builder::default()
.rust_target(RustTarget::Stable_1_25)
.disable_untagged_union();
let rustfmt_path = env::var_os("RUSTFMT")
// This can be replaced with