File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2828,7 +2828,7 @@ mod utils {
2828
2828
// [1]: http://c0x.coding-guidelines.com/6.7.5.3.html
2829
2829
let arg_ty = match * arg_ty. canonical_type ( ctx) . kind ( ) {
2830
2830
TypeKind :: Array ( t, _) => {
2831
- t. to_rust_ty ( ctx) . to_ptr ( arg_ty . is_const ( ) , ctx. span ( ) )
2831
+ t. to_rust_ty ( ctx) . to_ptr ( ctx . resolve_type ( t ) . is_const ( ) , ctx. span ( ) )
2832
2832
} ,
2833
2833
TypeKind :: Pointer ( inner) => {
2834
2834
let inner = ctx. resolve_item ( inner) ;
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
+ extern "C" {
8
+ pub fn f ( a : * const :: std:: os:: raw:: c_int ) ;
9
+ }
Original file line number Diff line number Diff line change
1
+ void f (const int a []);
You can’t perform that action at this time.
0 commit comments