mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-20 22:56:53 -04:00
fix array type and regenerate clang bindings
This commit is contained in:
@@ -133,7 +133,7 @@ fn mk_extern(ctx: &GenCtx, link: ~str, vars: ~[@ast::foreign_item], funcs: ~[@as
|
||||
value: dummy_spanned(
|
||||
ast::meta_name_value(
|
||||
~"link_args",
|
||||
dummy_spanned(ast::lit_str(@link))
|
||||
dummy_spanned(ast::lit_str(@(~"-l"+link)))
|
||||
)
|
||||
),
|
||||
is_sugared_doc: false
|
||||
@@ -436,7 +436,15 @@ fn mk_ptrty(ctx: &GenCtx, base: @ast::ty) -> @ast::ty {
|
||||
}
|
||||
|
||||
fn mk_arrty(ctx: &GenCtx, base: @ast::ty, n: uint) -> @ast::ty {
|
||||
let ty = ast::ty_fixed_length(base, Some(n));
|
||||
let vec = @{
|
||||
id: ctx.ext_cx.next_id(),
|
||||
node: ast::ty_vec({
|
||||
ty: base,
|
||||
mutbl: ast::m_imm
|
||||
}),
|
||||
span: dummy_sp()
|
||||
};
|
||||
let ty = ast::ty_fixed_length(vec, Some(n));
|
||||
|
||||
return @{ id: ctx.ext_cx.next_id(),
|
||||
node: ty,
|
||||
|
||||
Reference in New Issue
Block a user