You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bindgen test_bing3.hpp -o src/bindings.rs --opaque-type "A" -- -x c++
Actual Results
#[repr(C)]#[derive(Debug)]pubstructA{pub_bindgen_opaque_blob:[u64;39usize],}#[test]fnbindgen_test_layout_A(){assert_eq!(::std::mem::size_of::<A>(),312usize,concat!("Size of: ",stringify!(A)));assert_eq!(::std::mem::align_of::<A>(),8usize,concat!("Alignment of ",stringify!(A)));}
and/or
error[E0277]: the trait bound `[u64; 39]: std::fmt::Debug` is not satisfied
--> src/bindings.rs:6:5
|
6 | pub _bindgen_opaque_blob: [u64; 39usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[u64; 39]` cannot be formatted using `:?`; if it is defined in your crate, add `#[derive(Debug)]` or manually implement it
|
= help: the trait `std::fmt::Debug` is not implemented for `[u64; 39]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[u64; 39]`
= note: required for the cast to the object type `std::fmt::Debug`
Expected Results
Debug trait is not used.
The text was updated successfully, but these errors were encountered:
What version of bindgen are you using? I thought we fixed exactly this bug in the last release, but maybe the fix is stuck on master and isn't released yet...
/* automatically generated by rust-bindgen */#[repr(C)]pubstructA{pub_bindgen_opaque_blob:[u64;39usize],}#[test]fnbindgen_test_layout_A(){assert_eq!(::std::mem::size_of::<A>(),312usize,concat!("Size of: ",stringify!(A)));assert_eq!(::std::mem::align_of::<A>(),8usize,concat!("Alignment of ",stringify!(A)));}
Input C/C++ Header
Bindgen Invocation
Actual Results
and/or
Expected Results
Debug trait is not used.
The text was updated successfully, but these errors were encountered: