From 6560ed24e0780640e25d2a43be57891f9709f2cf Mon Sep 17 00:00:00 2001 From: Zhiting Zhu Date: Thu, 10 Aug 2017 16:55:19 -0700 Subject: Function related tests for derive PartialEq --- tests/expectations/tests/derive-fn-ptr.rs | 2 +- tests/expectations/tests/func_ptr_in_struct.rs | 2 +- tests/headers/derive-fn-ptr.h | 2 +- tests/headers/func_ptr.h | 2 +- tests/headers/func_ptr_in_struct.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/expectations/tests/derive-fn-ptr.rs b/tests/expectations/tests/derive-fn-ptr.rs index fca1f4e5..c98f2ec7 100644 --- a/tests/expectations/tests/derive-fn-ptr.rs +++ b/tests/expectations/tests/derive-fn-ptr.rs @@ -58,7 +58,7 @@ pub type my_fun2_t = arg11: ::std::os::raw::c_int, arg12: ::std::os::raw::c_int)>; #[repr(C)] -#[derive(Debug, Copy, Hash)] +#[derive(Debug, Copy, Hash, PartialEq)] pub struct Bar { pub callback: my_fun2_t, } diff --git a/tests/expectations/tests/func_ptr_in_struct.rs b/tests/expectations/tests/func_ptr_in_struct.rs index a855d8cf..d0e076ee 100644 --- a/tests/expectations/tests/func_ptr_in_struct.rs +++ b/tests/expectations/tests/func_ptr_in_struct.rs @@ -7,7 +7,7 @@ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum baz { } #[repr(C)] -#[derive(Debug, Copy, Hash)] +#[derive(Debug, Copy, Hash, PartialEq)] pub struct Foo { pub bar: ::std::option::Option