summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Pepyakin <s.pepyakin@gmail.com>2017-10-02 23:55:14 +0300
committerSergey Pepyakin <s.pepyakin@gmail.com>2017-10-03 00:37:20 +0300
commit617c55b0a962429fdd6fdbeebdebf4f5fe4cc256 (patch)
tree3a89114a9bee784b4a184fcfbf5430f10412c612
parentb02b158d39d30285d71adf34d6cc5b299caeada0 (diff)
Turn comments into doc comments in tests.
-rw-r--r--tests/expectations/tests/derive-partialeq-union.rs2
-rw-r--r--tests/expectations/tests/derive-partialeq-union_1_0.rs1
-rw-r--r--tests/headers/derive-partialeq-union.hpp2
-rw-r--r--tests/headers/derive-partialeq-union_1_0.hpp2
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;