File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ impl<'ctx> BindgenContext<'ctx> {
222
222
error ! ( "Valid declaration with no USR: {:?}, {:?}" ,
223
223
declaration,
224
224
location) ;
225
- return ;
225
+ TypeKey :: Declaration ( declaration )
226
226
} ;
227
227
228
228
let old = self . types . insert ( key, id) ;
Original file line number Diff line number Diff line change
1
+ /* automatically generated by rust-bindgen */
2
+
3
+
4
+ #![ allow( non_snake_case) ]
5
+
6
+
7
+ #[ repr( C ) ]
8
+ #[ derive( Debug , Copy ) ]
9
+ pub struct A {
10
+ pub foo : usize ,
11
+ }
12
+ #[ test]
13
+ fn bindgen_test_layout_A ( ) {
14
+ assert_eq ! ( :: std:: mem:: size_of:: <A >( ) , 8usize ) ;
15
+ assert_eq ! ( :: std:: mem:: align_of:: <A >( ) , 8usize ) ;
16
+ }
17
+ impl Clone for A {
18
+ fn clone ( & self ) -> Self { * self }
19
+ }
Original file line number Diff line number Diff line change
1
+
2
+ typedef unsigned long long size_t ;
3
+
4
+ class A {
5
+ const size_t foo;
6
+
7
+ A () : foo(5 ) {}
8
+ };
You can’t perform that action at this time.
0 commit comments