Skip to content

Commit 20ae8e8

Browse files
committed
Fix tests on stable for #[repr(packed(N))]
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.
1 parent dd28ccd commit 20ae8e8

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/features.rs

-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ rust_feature_def!(
199199
Nightly {
200200
/// `thiscall` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/42202))
201201
=> thiscall_abi;
202-
/// repr(packed(N)) ([PR](https://github.com/rust-lang/rust/pull/57049))
203-
=> repr_packed_n;
204202
}
205203
);
206204

tests/expectations/tests/issue-537-repr-packed-n.rs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
non_camel_case_types,
77
non_upper_case_globals
88
)]
9+
#![cfg(feature = "nightly")]
910

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

tests/headers/issue-537-repr-packed-n.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// bindgen-flags: --rust-target nightly
1+
// bindgen-flags: --raw-line '#![cfg(feature = "nightly")]' --rust-target 1.33
22

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

0 commit comments

Comments
 (0)