@@ -51,44 +51,66 @@ pub struct rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 {
51
51
#[ test]
52
52
fn bindgen_test_layout_rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 ( ) {
53
53
assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1>( )
54
- , 4usize ) ;
54
+ , 4usize , concat ! (
55
+ "Size of: " , stringify ! (
56
+ rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 ) ) ) ;
55
57
assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1>( )
56
- , 2usize ) ;
58
+ , 2usize , concat ! (
59
+ "Alignment of " , stringify ! (
60
+ rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 ) ) ) ;
57
61
assert_eq ! ( unsafe {
58
62
& (
59
63
* ( 0 as * const rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 )
60
- ) . dport as * const _ as usize } , 0usize ) ;
64
+ ) . dport as * const _ as usize } , 0usize , concat ! (
65
+ "Alignment of field: " , stringify ! (
66
+ rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 ) , "::" ,
67
+ stringify ! ( dport ) ) ) ;
61
68
assert_eq ! ( unsafe {
62
69
& (
63
70
* ( 0 as * const rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 )
64
- ) . sport as * const _ as usize } , 2usize ) ;
71
+ ) . sport as * const _ as usize } , 2usize , concat ! (
72
+ "Alignment of field: " , stringify ! (
73
+ rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 ) , "::" ,
74
+ stringify ! ( sport ) ) ) ;
65
75
}
66
76
impl Clone for rte_ipv4_tuple__bindgen_ty_1__bindgen_ty_1 {
67
77
fn clone ( & self ) -> Self { * self }
68
78
}
69
79
#[ test]
70
80
fn bindgen_test_layout_rte_ipv4_tuple__bindgen_ty_1 ( ) {
71
- assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv4_tuple__bindgen_ty_1>( ) ,
72
- 4usize ) ;
81
+ assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv4_tuple__bindgen_ty_1>( ) , 4usize
82
+ , concat ! (
83
+ "Size of: " , stringify ! ( rte_ipv4_tuple__bindgen_ty_1 ) ) ) ;
73
84
assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv4_tuple__bindgen_ty_1>( ) ,
74
- 4usize ) ;
85
+ 4usize , concat ! (
86
+ "Alignment of " , stringify ! ( rte_ipv4_tuple__bindgen_ty_1 )
87
+ ) ) ;
75
88
assert_eq ! ( unsafe {
76
89
& ( * ( 0 as * const rte_ipv4_tuple__bindgen_ty_1 ) ) .
77
- sctp_tag as * const _ as usize } , 0usize ) ;
90
+ sctp_tag as * const _ as usize } , 0usize , concat ! (
91
+ "Alignment of field: " , stringify ! (
92
+ rte_ipv4_tuple__bindgen_ty_1 ) , "::" , stringify ! ( sctp_tag
93
+ ) ) ) ;
78
94
}
79
95
impl Clone for rte_ipv4_tuple__bindgen_ty_1 {
80
96
fn clone ( & self ) -> Self { * self }
81
97
}
82
98
#[ test]
83
99
fn bindgen_test_layout_rte_ipv4_tuple ( ) {
84
- assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv4_tuple>( ) , 12usize ) ;
85
- assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv4_tuple>( ) , 4usize ) ;
100
+ assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv4_tuple>( ) , 12usize , concat ! (
101
+ "Size of: " , stringify ! ( rte_ipv4_tuple ) ) ) ;
102
+ assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv4_tuple>( ) , 4usize , concat ! (
103
+ "Alignment of " , stringify ! ( rte_ipv4_tuple ) ) ) ;
86
104
assert_eq ! ( unsafe {
87
105
& ( * ( 0 as * const rte_ipv4_tuple ) ) . src_addr as * const
88
- _ as usize } , 0usize ) ;
106
+ _ as usize } , 0usize , concat ! (
107
+ "Alignment of field: " , stringify ! ( rte_ipv4_tuple ) , "::"
108
+ , stringify ! ( src_addr ) ) ) ;
89
109
assert_eq ! ( unsafe {
90
110
& ( * ( 0 as * const rte_ipv4_tuple ) ) . dst_addr as * const
91
- _ as usize } , 4usize ) ;
111
+ _ as usize } , 4usize , concat ! (
112
+ "Alignment of field: " , stringify ! ( rte_ipv4_tuple ) , "::"
113
+ , stringify ! ( dst_addr ) ) ) ;
92
114
}
93
115
impl Clone for rte_ipv4_tuple {
94
116
fn clone ( & self ) -> Self { * self }
@@ -116,44 +138,66 @@ pub struct rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 {
116
138
#[ test]
117
139
fn bindgen_test_layout_rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 ( ) {
118
140
assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1>( )
119
- , 4usize ) ;
141
+ , 4usize , concat ! (
142
+ "Size of: " , stringify ! (
143
+ rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 ) ) ) ;
120
144
assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1>( )
121
- , 2usize ) ;
145
+ , 2usize , concat ! (
146
+ "Alignment of " , stringify ! (
147
+ rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 ) ) ) ;
122
148
assert_eq ! ( unsafe {
123
149
& (
124
150
* ( 0 as * const rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 )
125
- ) . dport as * const _ as usize } , 0usize ) ;
151
+ ) . dport as * const _ as usize } , 0usize , concat ! (
152
+ "Alignment of field: " , stringify ! (
153
+ rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 ) , "::" ,
154
+ stringify ! ( dport ) ) ) ;
126
155
assert_eq ! ( unsafe {
127
156
& (
128
157
* ( 0 as * const rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 )
129
- ) . sport as * const _ as usize } , 2usize ) ;
158
+ ) . sport as * const _ as usize } , 2usize , concat ! (
159
+ "Alignment of field: " , stringify ! (
160
+ rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 ) , "::" ,
161
+ stringify ! ( sport ) ) ) ;
130
162
}
131
163
impl Clone for rte_ipv6_tuple__bindgen_ty_1__bindgen_ty_1 {
132
164
fn clone ( & self ) -> Self { * self }
133
165
}
134
166
#[ test]
135
167
fn bindgen_test_layout_rte_ipv6_tuple__bindgen_ty_1 ( ) {
136
- assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv6_tuple__bindgen_ty_1>( ) ,
137
- 4usize ) ;
168
+ assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv6_tuple__bindgen_ty_1>( ) , 4usize
169
+ , concat ! (
170
+ "Size of: " , stringify ! ( rte_ipv6_tuple__bindgen_ty_1 ) ) ) ;
138
171
assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv6_tuple__bindgen_ty_1>( ) ,
139
- 4usize ) ;
172
+ 4usize , concat ! (
173
+ "Alignment of " , stringify ! ( rte_ipv6_tuple__bindgen_ty_1 )
174
+ ) ) ;
140
175
assert_eq ! ( unsafe {
141
176
& ( * ( 0 as * const rte_ipv6_tuple__bindgen_ty_1 ) ) .
142
- sctp_tag as * const _ as usize } , 0usize ) ;
177
+ sctp_tag as * const _ as usize } , 0usize , concat ! (
178
+ "Alignment of field: " , stringify ! (
179
+ rte_ipv6_tuple__bindgen_ty_1 ) , "::" , stringify ! ( sctp_tag
180
+ ) ) ) ;
143
181
}
144
182
impl Clone for rte_ipv6_tuple__bindgen_ty_1 {
145
183
fn clone ( & self ) -> Self { * self }
146
184
}
147
185
#[ test]
148
186
fn bindgen_test_layout_rte_ipv6_tuple ( ) {
149
- assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv6_tuple>( ) , 36usize ) ;
150
- assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv6_tuple>( ) , 4usize ) ;
187
+ assert_eq ! ( :: std:: mem:: size_of:: <rte_ipv6_tuple>( ) , 36usize , concat ! (
188
+ "Size of: " , stringify ! ( rte_ipv6_tuple ) ) ) ;
189
+ assert_eq ! ( :: std:: mem:: align_of:: <rte_ipv6_tuple>( ) , 4usize , concat ! (
190
+ "Alignment of " , stringify ! ( rte_ipv6_tuple ) ) ) ;
151
191
assert_eq ! ( unsafe {
152
192
& ( * ( 0 as * const rte_ipv6_tuple ) ) . src_addr as * const
153
- _ as usize } , 0usize ) ;
193
+ _ as usize } , 0usize , concat ! (
194
+ "Alignment of field: " , stringify ! ( rte_ipv6_tuple ) , "::"
195
+ , stringify ! ( src_addr ) ) ) ;
154
196
assert_eq ! ( unsafe {
155
197
& ( * ( 0 as * const rte_ipv6_tuple ) ) . dst_addr as * const
156
- _ as usize } , 16usize ) ;
198
+ _ as usize } , 16usize , concat ! (
199
+ "Alignment of field: " , stringify ! ( rte_ipv6_tuple ) , "::"
200
+ , stringify ! ( dst_addr ) ) ) ;
157
201
}
158
202
impl Clone for rte_ipv6_tuple {
159
203
fn clone ( & self ) -> Self { * self }
@@ -167,13 +211,18 @@ pub struct rte_thash_tuple {
167
211
}
168
212
#[ test]
169
213
fn bindgen_test_layout_rte_thash_tuple ( ) {
170
- assert_eq ! ( :: std:: mem:: size_of:: <rte_thash_tuple>( ) , 48usize ) ;
214
+ assert_eq ! ( :: std:: mem:: size_of:: <rte_thash_tuple>( ) , 48usize , concat ! (
215
+ "Size of: " , stringify ! ( rte_thash_tuple ) ) ) ;
171
216
assert_eq ! ( unsafe {
172
217
& ( * ( 0 as * const rte_thash_tuple ) ) . v4 as * const _ as
173
- usize } , 0usize ) ;
218
+ usize } , 0usize , concat ! (
219
+ "Alignment of field: " , stringify ! ( rte_thash_tuple ) ,
220
+ "::" , stringify ! ( v4 ) ) ) ;
174
221
assert_eq ! ( unsafe {
175
222
& ( * ( 0 as * const rte_thash_tuple ) ) . v6 as * const _ as
176
- usize } , 0usize ) ;
223
+ usize } , 0usize , concat ! (
224
+ "Alignment of field: " , stringify ! ( rte_thash_tuple ) ,
225
+ "::" , stringify ! ( v6 ) ) ) ;
177
226
}
178
227
impl Clone for rte_thash_tuple {
179
228
fn clone ( & self ) -> Self { * self }
0 commit comments