diff options
author | Tamir Duberstein <tamird@gmail.com> | 2015-03-22 14:20:53 -0700 |
---|---|---|
committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-22 15:56:37 -0700 |
commit | b1bf46eb9e90633b0657bb48218ed61a6a99810c (patch) | |
tree | bb3808eb53297ffb21f785e295a458b3b3e70fe3 /tests | |
parent | 51401e6c85af20e391127803d75e6d69832ebdb6 (diff) |
Clean up `allow`s
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_builtins.rs | 2 | ||||
-rw-r--r-- | tests/test_cmath.rs | 2 | ||||
-rw-r--r-- | tests/test_struct.rs | 1 | ||||
-rw-r--r-- | tests/test_union.rs | 2 |
4 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_builtins.rs b/tests/test_builtins.rs index dccb63f7..a630cce0 100644 --- a/tests/test_builtins.rs +++ b/tests/test_builtins.rs @@ -1,6 +1,6 @@ #[test] fn test_builtin_va_list() { - #[allow(dead_code, non_camel_case_types, raw_pointer_derive)] + #[allow(non_camel_case_types)] mod ffi { bindgen!("headers/builtin_va_list.h", emit_builtins = true); } // Should test for more than compilation. } diff --git a/tests/test_cmath.rs b/tests/test_cmath.rs index baa89dbb..03c02ae7 100644 --- a/tests/test_cmath.rs +++ b/tests/test_cmath.rs @@ -1,4 +1,4 @@ -#[allow(dead_code, non_camel_case_types, non_upper_case_globals, raw_pointer_derive)] +#[allow(dead_code, non_camel_case_types)] pub mod ffi { bindgen!("/usr/include/math.h", link = "m"); } #[test] diff --git a/tests/test_struct.rs b/tests/test_struct.rs index 634c09d1..200eaf99 100644 --- a/tests/test_struct.rs +++ b/tests/test_struct.rs @@ -59,7 +59,6 @@ fn with_anon_struct_array() { #[test] fn with_anon_struct_pointer() { - #[allow(raw_pointer_derive)] mod ffi { bindgen!("headers/struct_with_anon_struct_pointer.h"); } let mut x: ffi::Struct_foo = Default::default(); let mut unnamed: ffi::Struct_Unnamed1 = Default::default(); diff --git a/tests/test_union.rs b/tests/test_union.rs index af6b9fa9..9380152a 100644 --- a/tests/test_union.rs +++ b/tests/test_union.rs @@ -2,8 +2,6 @@ use std::default::Default; #[test] fn with_anon_struct() { - // XXX: Rustc thinks that the anonymous struct, bar, is unused. - #[allow(dead_code)] mod ffi { bindgen!("headers/union_with_anon_struct.h"); } let mut x: ffi::Union_foo = Default::default(); |