diff options
author | uk <50893351+unterkontrolle@users.noreply.github.com> | 2019-06-11 11:57:17 -0300 |
---|---|---|
committer | uk <50893351+unterkontrolle@users.noreply.github.com> | 2019-06-11 11:57:17 -0300 |
commit | 26d7f0aa88f78f568931528f8a528124af6ff6be (patch) | |
tree | 1c535b20907510e2799046d66da1a0d9cfa8ea73 | |
parent | b2c478f9ccb971f350e364d16a45cdd128dca3a8 (diff) |
Hopefully fixes automated tests for #1554.
See https://github.com/rust-lang/rust-bindgen/pull/1575#discussion_r292230729
-rw-r--r-- | tests/expectations/tests/issue-1554.rs | 3 | ||||
-rw-r--r-- | tests/headers/issue-1554.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/expectations/tests/issue-1554.rs b/tests/expectations/tests/issue-1554.rs index 49da62bb..c3fb0d48 100644 --- a/tests/expectations/tests/issue-1554.rs +++ b/tests/expectations/tests/issue-1554.rs @@ -6,6 +6,9 @@ non_camel_case_types, non_upper_case_globals )] +#![cfg(feature = "nightly")] +#![feature(non_exhaustive)] + #[repr(u32)] #[non_exhaustive] diff --git a/tests/headers/issue-1554.h b/tests/headers/issue-1554.h index 3f840fdd..edf3541c 100644 --- a/tests/headers/issue-1554.h +++ b/tests/headers/issue-1554.h @@ -1,4 +1,4 @@ -// bindgen-flags: --default-enum-style rust_non_exhaustive +// bindgen-flags: --default-enum-style rust_non_exhaustive --raw-line '#![cfg(feature = "nightly")]' --raw-line '#![feature(non_exhaustive)]' enum Planet { earth, |