diff options
author | Edward Barnard <eabarnard@gmail.com> | 2015-01-03 14:27:03 +0000 |
---|---|---|
committer | Edward Barnard <eabarnard@gmail.com> | 2015-01-03 14:37:22 +0000 |
commit | a78f887c3db5907e6f3cd16066f139a970d21d8f (patch) | |
tree | c9994f88c2f964477c1fbcb483fd7eaccfb26439 /tests/test_struct.rs | |
parent | d120a06a07bf13a255899d5cfff334e4b0467ad0 (diff) |
Fix build
Diffstat (limited to 'tests/test_struct.rs')
-rw-r--r-- | tests/test_struct.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_struct.rs b/tests/test_struct.rs index 3a9e3550..68078a33 100644 --- a/tests/test_struct.rs +++ b/tests/test_struct.rs @@ -17,7 +17,7 @@ fn with_anon_struct_array() { assert_bind_eq!("headers/struct_with_anon_struct_array.h", cx, quote_item!(cx, #[repr(C)] - #[deriving(Copy)] + #[derive(Copy)] pub struct Struct_foo { pub bar: [Struct_Unnamed1; 2u], pub baz: [[[Struct_Unnamed2; 4u]; 3u]; 2u], @@ -30,7 +30,7 @@ fn with_anon_struct_array() { ), quote_item!(cx, #[repr(C)] - #[deriving(Copy)] + #[derive(Copy)] pub struct Struct_Unnamed1 { pub a: ::libc::c_int, pub b: ::libc::c_int, @@ -43,7 +43,7 @@ fn with_anon_struct_array() { ), quote_item!(cx, #[repr(C)] - #[deriving(Copy)] + #[derive(Copy)] pub struct Struct_Unnamed2 { pub a: ::libc::c_int, pub b: ::libc::c_int, @@ -139,7 +139,7 @@ fn containing_fwd_decl_struct() { assert_bind_eq!("headers/struct_containing_forward_declared_struct.h", cx, quote_item!(cx, #[repr(C)] - #[deriving(Copy)] + #[derive(Copy)] pub struct Struct_a { pub val_a: *mut Struct_b, } @@ -151,7 +151,7 @@ fn containing_fwd_decl_struct() { ), quote_item!(cx, #[repr(C)] - #[deriving(Copy)] + #[derive(Copy)] pub struct Struct_b { pub val_b: ::libc::c_int, } @@ -169,7 +169,7 @@ fn with_bitfields() { assert_bind_eq!("headers/struct_with_bitfields.h", cx, quote_item!(cx, #[repr(C)] - #[deriving(Copy)] + #[derive(Copy)] pub struct Struct_bitfield { pub _bindgen_bitfield_1_: ::libc::c_ushort, pub e: ::libc::c_int, |