diff options
author | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-16 04:11:21 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-16 04:11:21 +0200 |
commit | 69f5eacbb78f6dab1f73dedd71479410fb5a689a (patch) | |
tree | 146a9ead7447f8435cff372dd562361859dcec0e | |
parent | 5e8861f9cdbf4f800469d16233fdcf9a3b3ff6a1 (diff) |
tests: Add allow(non_snake_case) to be less noisy
54 files changed, 160 insertions, 0 deletions
diff --git a/tests/expectations/annotation_hide.rs b/tests/expectations/annotation_hide.rs index 755bbbe6..9d4d1ee8 100644 --- a/tests/expectations/annotation_hide.rs +++ b/tests/expectations/annotation_hide.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + pub enum Struct_C { } #[repr(C)] diff --git a/tests/expectations/class.rs b/tests/expectations/class.rs index 46d12160..244e98a4 100644 --- a/tests/expectations/class.rs +++ b/tests/expectations/class.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/class_nested.rs b/tests/expectations/class_nested.rs index e77a8147..9c604497 100644 --- a/tests/expectations/class_nested.rs +++ b/tests/expectations/class_nested.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/class_no_members.rs b/tests/expectations/class_no_members.rs index e18a30c9..77902d62 100644 --- a/tests/expectations/class_no_members.rs +++ b/tests/expectations/class_no_members.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/class_use_as.rs b/tests/expectations/class_use_as.rs index 87479f2f..eb150c3d 100644 --- a/tests/expectations/class_use_as.rs +++ b/tests/expectations/class_use_as.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + /** * <div rustbindgen="true" replaces="whatever"></div> diff --git a/tests/expectations/class_with_dtor.rs b/tests/expectations/class_with_dtor.rs index 272e9121..983b41df 100644 --- a/tests/expectations/class_with_dtor.rs +++ b/tests/expectations/class_with_dtor.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug)] diff --git a/tests/expectations/class_with_inner_struct.rs b/tests/expectations/class_with_inner_struct.rs index 013050a0..85954397 100644 --- a/tests/expectations/class_with_inner_struct.rs +++ b/tests/expectations/class_with_inner_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/class_with_typedef.rs b/tests/expectations/class_with_typedef.rs index 9ad99058..328ef2a0 100644 --- a/tests/expectations/class_with_typedef.rs +++ b/tests/expectations/class_with_typedef.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + pub type AnotherInt = ::std::os::raw::c_int; #[repr(C)] diff --git a/tests/expectations/decl_ptr_to_array.rs b/tests/expectations/decl_ptr_to_array.rs index 3a2c33e6..74054fdd 100644 --- a/tests/expectations/decl_ptr_to_array.rs +++ b/tests/expectations/decl_ptr_to_array.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + extern "C" { pub static mut foo: [::std::os::raw::c_int; 1usize]; diff --git a/tests/expectations/enum.rs b/tests/expectations/enum.rs index 09eed547..0b426196 100644 --- a/tests/expectations/enum.rs +++ b/tests/expectations/enum.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(u32)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/enum_and_vtable_mangling.rs b/tests/expectations/enum_and_vtable_mangling.rs index fe3f2ab2..63e66991 100644 --- a/tests/expectations/enum_and_vtable_mangling.rs +++ b/tests/expectations/enum_and_vtable_mangling.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(u32)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/enum_dupe.rs b/tests/expectations/enum_dupe.rs index aa8c27e7..2d691b69 100644 --- a/tests/expectations/enum_dupe.rs +++ b/tests/expectations/enum_dupe.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + pub const Dupe: Enum_Foo = Enum_Foo::Bar; #[repr(u32)] diff --git a/tests/expectations/enum_explicit_type.rs b/tests/expectations/enum_explicit_type.rs index c89488a3..a5a92d99 100644 --- a/tests/expectations/enum_explicit_type.rs +++ b/tests/expectations/enum_explicit_type.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(u8)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/enum_negative.rs b/tests/expectations/enum_negative.rs index 9c4f5e4c..24b009e9 100644 --- a/tests/expectations/enum_negative.rs +++ b/tests/expectations/enum_negative.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(i32)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/enum_packed.rs b/tests/expectations/enum_packed.rs index bdc5d613..12f0bd49 100644 --- a/tests/expectations/enum_packed.rs +++ b/tests/expectations/enum_packed.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(u8)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/extern.rs b/tests/expectations/extern.rs index 2925a223..eda55446 100644 --- a/tests/expectations/extern.rs +++ b/tests/expectations/extern.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + pub type foo = unsafe extern "C" fn(bar: ::std::os::raw::c_int) -> ::std::os::raw::c_int; diff --git a/tests/expectations/forward_declared_struct.rs b/tests/expectations/forward_declared_struct.rs index 4a27698d..48333da3 100644 --- a/tests/expectations/forward_declared_struct.rs +++ b/tests/expectations/forward_declared_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/func_proto.rs b/tests/expectations/func_proto.rs index 2925a223..eda55446 100644 --- a/tests/expectations/func_proto.rs +++ b/tests/expectations/func_proto.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + pub type foo = unsafe extern "C" fn(bar: ::std::os::raw::c_int) -> ::std::os::raw::c_int; diff --git a/tests/expectations/func_ptr.rs b/tests/expectations/func_ptr.rs index 02717fa3..4a94aebb 100644 --- a/tests/expectations/func_ptr.rs +++ b/tests/expectations/func_ptr.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + extern "C" { pub static mut foo: diff --git a/tests/expectations/func_ptr_in_struct.rs b/tests/expectations/func_ptr_in_struct.rs index b997f5a6..970e3122 100644 --- a/tests/expectations/func_ptr_in_struct.rs +++ b/tests/expectations/func_ptr_in_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(i32)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/func_with_array_arg.rs b/tests/expectations/func_with_array_arg.rs index 4a6dcb80..4df689ae 100644 --- a/tests/expectations/func_with_array_arg.rs +++ b/tests/expectations/func_with_array_arg.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + extern "C" { pub fn f(x: *mut ::std::os::raw::c_int); diff --git a/tests/expectations/func_with_func_ptr_arg.rs b/tests/expectations/func_with_func_ptr_arg.rs index 90671132..1dc98c81 100644 --- a/tests/expectations/func_with_func_ptr_arg.rs +++ b/tests/expectations/func_with_func_ptr_arg.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + extern "C" { pub fn foo(bar: ::std::option::Option<unsafe extern "C" fn()>); diff --git a/tests/expectations/jsval_layout_opaque.rs b/tests/expectations/jsval_layout_opaque.rs index 05f31115..33c2ce32 100644 --- a/tests/expectations/jsval_layout_opaque.rs +++ b/tests/expectations/jsval_layout_opaque.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/namespace.rs b/tests/expectations/namespace.rs index 002d7516..334542a9 100644 --- a/tests/expectations/namespace.rs +++ b/tests/expectations/namespace.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + pub type whatever_int_t = ::std::os::raw::c_int; #[repr(C)] diff --git a/tests/expectations/nested.rs b/tests/expectations/nested.rs index a29ad7a6..dd61ecdf 100644 --- a/tests/expectations/nested.rs +++ b/tests/expectations/nested.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/only_bitfields.rs b/tests/expectations/only_bitfields.rs index c9314529..86ed8564 100644 --- a/tests/expectations/only_bitfields.rs +++ b/tests/expectations/only_bitfields.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/opaque_in_struct.rs b/tests/expectations/opaque_in_struct.rs index 587b064b..24860e2c 100644 --- a/tests/expectations/opaque_in_struct.rs +++ b/tests/expectations/opaque_in_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] pub struct opaque { diff --git a/tests/expectations/opaque_pointer.rs b/tests/expectations/opaque_pointer.rs index e0cdf775..7d6961b5 100644 --- a/tests/expectations/opaque_pointer.rs +++ b/tests/expectations/opaque_pointer.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] pub struct OtherOpaque { diff --git a/tests/expectations/overflowed_enum.rs b/tests/expectations/overflowed_enum.rs index 25861a7a..e32db0ae 100644 --- a/tests/expectations/overflowed_enum.rs +++ b/tests/expectations/overflowed_enum.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(u32)] #[derive(Debug, Copy, Clone)] diff --git a/tests/expectations/size_t_template.rs b/tests/expectations/size_t_template.rs index 4fa9c32b..c4f1b0e5 100644 --- a/tests/expectations/size_t_template.rs +++ b/tests/expectations/size_t_template.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug)] diff --git a/tests/expectations/struct_containing_forward_declared_struct.rs b/tests/expectations/struct_containing_forward_declared_struct.rs index 79a7bd74..8de4c419 100644 --- a/tests/expectations/struct_containing_forward_declared_struct.rs +++ b/tests/expectations/struct_containing_forward_declared_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_anon_struct.rs b/tests/expectations/struct_with_anon_struct.rs index 3516ad9c..dd6e480a 100644 --- a/tests/expectations/struct_with_anon_struct.rs +++ b/tests/expectations/struct_with_anon_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_anon_struct_array.rs b/tests/expectations/struct_with_anon_struct_array.rs index a7912d02..f0b9290f 100644 --- a/tests/expectations/struct_with_anon_struct_array.rs +++ b/tests/expectations/struct_with_anon_struct_array.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_anon_struct_pointer.rs b/tests/expectations/struct_with_anon_struct_pointer.rs index 913412c5..97d58aea 100644 --- a/tests/expectations/struct_with_anon_struct_pointer.rs +++ b/tests/expectations/struct_with_anon_struct_pointer.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_anon_union.rs b/tests/expectations/struct_with_anon_union.rs index 84381c4a..ce5d6357 100644 --- a/tests/expectations/struct_with_anon_union.rs +++ b/tests/expectations/struct_with_anon_union.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/struct_with_anon_unnamed_struct.rs b/tests/expectations/struct_with_anon_unnamed_struct.rs index 800b4e23..7318db9a 100644 --- a/tests/expectations/struct_with_anon_unnamed_struct.rs +++ b/tests/expectations/struct_with_anon_unnamed_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_anon_unnamed_union.rs b/tests/expectations/struct_with_anon_unnamed_union.rs index 5a20dca7..d5871b1a 100644 --- a/tests/expectations/struct_with_anon_unnamed_union.rs +++ b/tests/expectations/struct_with_anon_unnamed_union.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/struct_with_bitfields.rs b/tests/expectations/struct_with_bitfields.rs index 78ab9ddf..ab2acf2a 100644 --- a/tests/expectations/struct_with_bitfields.rs +++ b/tests/expectations/struct_with_bitfields.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_derive_debug.rs b/tests/expectations/struct_with_derive_debug.rs index a69c6807..bc006717 100644 --- a/tests/expectations/struct_with_derive_debug.rs +++ b/tests/expectations/struct_with_derive_debug.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_nesting.rs b/tests/expectations/struct_with_nesting.rs index fa1fdfff..2e023c33 100644 --- a/tests/expectations/struct_with_nesting.rs +++ b/tests/expectations/struct_with_nesting.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/struct_with_packing.rs b/tests/expectations/struct_with_packing.rs index bcf543cd..a6aa9780 100644 --- a/tests/expectations/struct_with_packing.rs +++ b/tests/expectations/struct_with_packing.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C, packed)] #[derive(Debug, Copy)] diff --git a/tests/expectations/struct_with_struct.rs b/tests/expectations/struct_with_struct.rs index d3d4daf5..234cd6f5 100644 --- a/tests/expectations/struct_with_struct.rs +++ b/tests/expectations/struct_with_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug, Copy)] diff --git a/tests/expectations/template.rs b/tests/expectations/template.rs index cd269a66..35da356c 100644 --- a/tests/expectations/template.rs +++ b/tests/expectations/template.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug)] diff --git a/tests/expectations/union_fields.rs b/tests/expectations/union_fields.rs index 40004b33..cf750844 100644 --- a/tests/expectations/union_fields.rs +++ b/tests/expectations/union_fields.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_anon_struct.rs b/tests/expectations/union_with_anon_struct.rs index c5fa755a..076e263f 100644 --- a/tests/expectations/union_with_anon_struct.rs +++ b/tests/expectations/union_with_anon_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_anon_struct_bitfield.rs b/tests/expectations/union_with_anon_struct_bitfield.rs index c4038ee1..dc96c5c8 100644 --- a/tests/expectations/union_with_anon_struct_bitfield.rs +++ b/tests/expectations/union_with_anon_struct_bitfield.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_anon_union.rs b/tests/expectations/union_with_anon_union.rs index db8bfda8..fc354db4 100644 --- a/tests/expectations/union_with_anon_union.rs +++ b/tests/expectations/union_with_anon_union.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_anon_unnamed_struct.rs b/tests/expectations/union_with_anon_unnamed_struct.rs index 7b5955fe..d75c120f 100644 --- a/tests/expectations/union_with_anon_unnamed_struct.rs +++ b/tests/expectations/union_with_anon_unnamed_struct.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_anon_unnamed_union.rs b/tests/expectations/union_with_anon_unnamed_union.rs index 22f1546d..4f26bfc9 100644 --- a/tests/expectations/union_with_anon_unnamed_union.rs +++ b/tests/expectations/union_with_anon_unnamed_union.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_big_member.rs b/tests/expectations/union_with_big_member.rs index 0513c5a6..44fc317b 100644 --- a/tests/expectations/union_with_big_member.rs +++ b/tests/expectations/union_with_big_member.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/union_with_nesting.rs b/tests/expectations/union_with_nesting.rs index dc8ba470..0a884d4a 100644 --- a/tests/expectations/union_with_nesting.rs +++ b/tests/expectations/union_with_nesting.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[derive(Copy, Debug)] pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); diff --git a/tests/expectations/using.rs b/tests/expectations/using.rs index 77267324..59201138 100644 --- a/tests/expectations/using.rs +++ b/tests/expectations/using.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(C)] #[derive(Debug)] diff --git a/tests/expectations/weird_bitfields.rs b/tests/expectations/weird_bitfields.rs index 9a7bc893..405c2490 100644 --- a/tests/expectations/weird_bitfields.rs +++ b/tests/expectations/weird_bitfields.rs @@ -1,6 +1,9 @@ /* automatically generated by rust-bindgen */ + #![feature(const_fn)] +#![allow(non_snake_case)] + #[repr(u32)] #[derive(Debug, Copy, Clone)] diff --git a/tests/tools/run-bindgen.py b/tests/tools/run-bindgen.py index e654fef3..0e3252ee 100755 --- a/tests/tools/run-bindgen.py +++ b/tests/tools/run-bindgen.py @@ -8,6 +8,7 @@ import tempfile BINDGEN_FLAGS_PREFIX = "// bindgen-flags: "; COMMON_PRELUDE = """ #![feature(const_fn)] +#![allow(non_snake_case)] """ if len(sys.argv) != 4: |