Skip to content

Commit

Permalink
Turn comments into doc comments in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pepyakin committed Oct 2, 2017
1 parent b02b158 commit 617c55b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/expectations/tests/derive-partialeq-union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions tests/expectations/tests/derive-partialeq-union_1_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/headers/derive-partialeq-union.hpp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/headers/derive-partialeq-union_1_0.hpp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 617c55b

Please sign in to comment.