Skip to content

Commit b7bd43a

Browse files
committed
Turn comments into doc comments in tests.
1 parent dfe3efd commit b7bd43a

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

tests/expectations/tests/derive-partialeq-union.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
55

66

7+
8+
/// Deriving PartialEq for rust unions is not supported.
79
#[repr(C)]
810
#[derive(Copy)]
911
pub union ShouldNotDerivePartialEq {

tests/expectations/tests/derive-partialeq-union_1_0.rs

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
4747
}
4848
}
4949
impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
50+
/// This should manually derive PartialEq.
5051
#[repr(C)]
5152
#[derive(Copy)]
5253
pub struct ShouldDerivePartialEq {

tests/headers/derive-partialeq-union.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// bindgen-flags: --with-derive-partialeq --impl-partialeq
22

3-
// Deriving PartialEq for rust unions is not supported.
3+
/// Deriving PartialEq for rust unions is not supported.
44
union ShouldNotDerivePartialEq {
55
char a;
66
int b;

tests/headers/derive-partialeq-union_1_0.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// bindgen-flags: --rust-target 1.0 --with-derive-partialeq --impl-partialeq
22

3-
// This should manually derive PartialEq.
3+
/// This should manually derive PartialEq.
44
union ShouldDerivePartialEq {
55
char a[150];
66
int b;

0 commit comments

Comments
 (0)