@@ -577,8 +577,7 @@ pub fn trans_rust_fn_with_foreign_abi(ccx: &CrateContext,
577
577
llwrapfn : ValueRef ,
578
578
param_substs : & param_substs ,
579
579
id : ast:: NodeId ,
580
- hash : Option < & str > ,
581
- handle_items : HandleItemsFlag ) {
580
+ hash : Option < & str > ) {
582
581
let _icx = push_ctxt ( "foreign::build_foreign_fn" ) ;
583
582
584
583
let fnty = ty:: node_id_to_type ( ccx. tcx ( ) , id) ;
@@ -587,8 +586,7 @@ pub fn trans_rust_fn_with_foreign_abi(ccx: &CrateContext,
587
586
588
587
unsafe { // unsafe because we call LLVM operations
589
588
// Build up the Rust function (`foo0` above).
590
- let llrustfn = build_rust_fn ( ccx, decl, body, param_substs, attrs, id,
591
- hash, handle_items) ;
589
+ let llrustfn = build_rust_fn ( ccx, decl, body, param_substs, attrs, id, hash) ;
592
590
593
591
// Build up the foreign wrapper (`foo` above).
594
592
return build_wrap_fn ( ccx, llrustfn, llwrapfn, & tys, mty) ;
@@ -600,8 +598,7 @@ pub fn trans_rust_fn_with_foreign_abi(ccx: &CrateContext,
600
598
param_substs : & param_substs ,
601
599
attrs : & [ ast:: Attribute ] ,
602
600
id : ast:: NodeId ,
603
- hash : Option < & str > ,
604
- handle_items : HandleItemsFlag )
601
+ hash : Option < & str > )
605
602
-> ValueRef {
606
603
let _icx = push_ctxt ( "foreign::foreign::build_rust_fn" ) ;
607
604
let tcx = ccx. tcx ( ) ;
@@ -633,7 +630,7 @@ pub fn trans_rust_fn_with_foreign_abi(ccx: &CrateContext,
633
630
634
631
let llfn = base:: decl_internal_rust_fn ( ccx, t, ps. as_slice ( ) ) ;
635
632
base:: set_llvm_fn_attrs ( attrs, llfn) ;
636
- base:: trans_fn ( ccx, decl, body, llfn, param_substs, id, [ ] , handle_items ) ;
633
+ base:: trans_fn ( ccx, decl, body, llfn, param_substs, id, [ ] , TranslateItems ) ;
637
634
llfn
638
635
}
639
636
0 commit comments