diff options
-rw-r--r-- | tests/expectations/tests/derive-partialeq-union.rs | 2 | ||||
-rw-r--r-- | tests/expectations/tests/derive-partialeq-union_1_0.rs | 1 | ||||
-rw-r--r-- | tests/headers/derive-partialeq-union.hpp | 2 | ||||
-rw-r--r-- | tests/headers/derive-partialeq-union_1_0.hpp | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/tests/expectations/tests/derive-partialeq-union.rs b/tests/expectations/tests/derive-partialeq-union.rs index dfb5a5ae..975dee36 100644 --- a/tests/expectations/tests/derive-partialeq-union.rs +++ b/tests/expectations/tests/derive-partialeq-union.rs @@ -4,6 +4,8 @@ #![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] + +/// Deriving PartialEq for rust unions is not supported. #[repr(C)] #[derive(Copy)] pub union ShouldNotDerivePartialEq { diff --git a/tests/expectations/tests/derive-partialeq-union_1_0.rs b/tests/expectations/tests/derive-partialeq-union_1_0.rs index f5d30f03..32a06352 100644 --- a/tests/expectations/tests/derive-partialeq-union_1_0.rs +++ b/tests/expectations/tests/derive-partialeq-union_1_0.rs @@ -47,6 +47,7 @@ impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> { } } impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {} +/// This should manually derive PartialEq. #[repr(C)] #[derive(Copy)] pub struct ShouldDerivePartialEq { diff --git a/tests/headers/derive-partialeq-union.hpp b/tests/headers/derive-partialeq-union.hpp index 887506d0..e2081a01 100644 --- a/tests/headers/derive-partialeq-union.hpp +++ b/tests/headers/derive-partialeq-union.hpp @@ -1,6 +1,6 @@ // bindgen-flags: --with-derive-partialeq --impl-partialeq -// Deriving PartialEq for rust unions is not supported. +/// Deriving PartialEq for rust unions is not supported. union ShouldNotDerivePartialEq { char a; int b; diff --git a/tests/headers/derive-partialeq-union_1_0.hpp b/tests/headers/derive-partialeq-union_1_0.hpp index 846a00dd..d546d77b 100644 --- a/tests/headers/derive-partialeq-union_1_0.hpp +++ b/tests/headers/derive-partialeq-union_1_0.hpp @@ -1,6 +1,6 @@ // bindgen-flags: --rust-target 1.0 --with-derive-partialeq --impl-partialeq -// This should manually derive PartialEq. +/// This should manually derive PartialEq. union ShouldDerivePartialEq { char a[150]; int b; |