@@ -30,12 +30,11 @@ impl <T> ::std::fmt::Debug for __BindgenUnionField<T> {
30
30
}
31
31
#[ repr( C ) ]
32
32
#[ derive( Debug , Copy , Clone ) ]
33
- pub struct TErrorResult < T > {
33
+ pub struct TErrorResult {
34
34
pub mResult : :: std:: os:: raw:: c_int ,
35
- pub __bindgen_anon_1 : TErrorResult__bindgen_ty_1 < T > ,
35
+ pub __bindgen_anon_1 : TErrorResult__bindgen_ty_1 ,
36
36
pub mMightHaveUnreported : bool ,
37
37
pub mUnionState : TErrorResult_UnionState ,
38
- pub _phantom_0 : :: std:: marker:: PhantomData < T > ,
39
38
}
40
39
pub const TErrorResult_UnionState_HasException : TErrorResult_UnionState =
41
40
TErrorResult_UnionState :: HasMessage ;
@@ -44,31 +43,28 @@ pub const TErrorResult_UnionState_HasException: TErrorResult_UnionState =
44
43
pub enum TErrorResult_UnionState { HasMessage = 0 , }
45
44
#[ repr( C ) ]
46
45
#[ derive( Debug , Default , Copy , Clone ) ]
47
- pub struct TErrorResult_Message < T > {
46
+ pub struct TErrorResult_Message {
48
47
pub _address : u8 ,
49
- pub _phantom_0 : :: std:: marker:: PhantomData < T > ,
50
48
}
51
49
#[ repr( C ) ]
52
50
#[ derive( Debug , Default , Copy , Clone ) ]
53
- pub struct TErrorResult_DOMExceptionInfo < T > {
51
+ pub struct TErrorResult_DOMExceptionInfo {
54
52
pub _address : u8 ,
55
- pub _phantom_0 : :: std:: marker:: PhantomData < T > ,
56
53
}
57
54
#[ repr( C ) ]
58
55
#[ derive( Debug , Default , Copy , Clone ) ]
59
- pub struct TErrorResult__bindgen_ty_1 < T > {
60
- pub mMessage : __BindgenUnionField < * mut TErrorResult_Message < T > > ,
61
- pub mDOMExceptionInfo : __BindgenUnionField < * mut TErrorResult_DOMExceptionInfo < T > > ,
56
+ pub struct TErrorResult__bindgen_ty_1 {
57
+ pub mMessage : __BindgenUnionField < * mut TErrorResult_Message > ,
58
+ pub mDOMExceptionInfo : __BindgenUnionField < * mut TErrorResult_DOMExceptionInfo > ,
62
59
pub bindgen_union_field : u64 ,
63
- pub _phantom_0 : :: std:: marker:: PhantomData < T > ,
64
60
}
65
- impl < T > Default for TErrorResult < T > {
61
+ impl Default for TErrorResult {
66
62
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
67
63
}
68
64
#[ repr( C ) ]
69
65
#[ derive( Debug , Copy ) ]
70
66
pub struct ErrorResult {
71
- pub _base : TErrorResult < :: std :: os :: raw :: c_int > ,
67
+ pub _base : TErrorResult ,
72
68
}
73
69
#[ test]
74
70
fn bindgen_test_layout_ErrorResult ( ) {
@@ -83,14 +79,3 @@ impl Clone for ErrorResult {
83
79
impl Default for ErrorResult {
84
80
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
85
81
}
86
- #[ test]
87
- fn __bindgen_test_layout_template_1 ( ) {
88
- assert_eq ! ( :: std:: mem:: size_of:: <TErrorResult <:: std:: os:: raw:: c_int>>( ) ,
89
- 24usize , concat ! (
90
- "Size of template specialization: " , stringify ! (
91
- TErrorResult <:: std:: os:: raw:: c_int> ) ) ) ;
92
- assert_eq ! ( :: std:: mem:: align_of:: <TErrorResult <:: std:: os:: raw:: c_int>>( ) ,
93
- 8usize , concat ! (
94
- "Alignment of template specialization: " , stringify ! (
95
- TErrorResult <:: std:: os:: raw:: c_int> ) ) ) ;
96
- }
0 commit comments