Skip to content

Commit 26d7f0a

Browse files
committed
Hopefully fixes automated tests for #1554.
See #1575 (comment)
1 parent b2c478f commit 26d7f0a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/expectations/tests/issue-1554.rs

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
non_camel_case_types,
77
non_upper_case_globals
88
)]
9+
#![cfg(feature = "nightly")]
10+
#![feature(non_exhaustive)]
11+
912

1013
#[repr(u32)]
1114
#[non_exhaustive]

tests/headers/issue-1554.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// bindgen-flags: --default-enum-style rust_non_exhaustive
1+
// bindgen-flags: --default-enum-style rust_non_exhaustive --raw-line '#![cfg(feature = "nightly")]' --raw-line '#![feature(non_exhaustive)]'
22

33
enum Planet {
44
earth,

0 commit comments

Comments
 (0)