Skip to content

Commit

Permalink
Fix tests on stable for #[repr(packed(N))]
Browse files Browse the repository at this point in the history
We need to use the nightly flag in generated bindings
because 1.33 isn't on stable and use of the attribute
will throw an error.
  • Loading branch information
LegNeato committed Jan 8, 2019
1 parent dd28ccd commit 20ae8e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ rust_feature_def!(
Nightly {
/// `thiscall` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/42202))
=> thiscall_abi;
/// repr(packed(N)) ([PR](https://github.com/rust-lang/rust/pull/57049))
=> repr_packed_n;
}
);

Expand Down
1 change: 1 addition & 0 deletions tests/expectations/tests/issue-537-repr-packed-n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
non_camel_case_types,
non_upper_case_globals
)]
#![cfg(feature = "nightly")]

/// This should not be opaque; we can see the attributes and can pack the
/// struct.
Expand Down
2 changes: 1 addition & 1 deletion tests/headers/issue-537-repr-packed-n.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// bindgen-flags: --rust-target nightly
// bindgen-flags: --raw-line '#![cfg(feature = "nightly")]' --rust-target 1.33

/// This should not be opaque; we can see the attributes and can pack the
/// struct.
Expand Down

0 comments on commit 20ae8e8

Please sign in to comment.