@@ -1343,8 +1343,7 @@ pub fn new_fn_ctxt<'a>(ccx: &'a CrateContext,
1343
1343
output_type : ty:: t ,
1344
1344
param_substs : & ' a param_substs ,
1345
1345
sp : Option < Span > ,
1346
- block_arena : & ' a TypedArena < Block < ' a > > ,
1347
- handle_items : HandleItemsFlag )
1346
+ block_arena : & ' a TypedArena < Block < ' a > > )
1348
1347
-> FunctionContext < ' a > {
1349
1348
param_substs. validate ( ) ;
1350
1349
@@ -1379,8 +1378,7 @@ pub fn new_fn_ctxt<'a>(ccx: &'a CrateContext,
1379
1378
block_arena : block_arena,
1380
1379
ccx : ccx,
1381
1380
debug_context : debug_context,
1382
- scopes : RefCell :: new ( Vec :: new ( ) ) ,
1383
- handle_items : handle_items,
1381
+ scopes : RefCell :: new ( Vec :: new ( ) )
1384
1382
} ;
1385
1383
1386
1384
if has_env {
@@ -1708,8 +1706,7 @@ pub fn trans_closure(ccx: &CrateContext,
1708
1706
abi : Abi ,
1709
1707
has_env : bool ,
1710
1708
is_unboxed_closure : IsUnboxedClosureFlag ,
1711
- maybe_load_env: <' a > |& ' a Block < ' a > | -> & ' a Block < ' a > ,
1712
- handle_items : HandleItemsFlag ) {
1709
+ maybe_load_env: <' a > |& ' a Block < ' a > | -> & ' a Block < ' a > ) {
1713
1710
ccx. stats. n_closures. set ( ccx. stats. n_closures. get ( ) + 1 ) ;
1714
1711
1715
1712
let _icx = push_ctxt( "trans_closure" ) ;
@@ -1726,8 +1723,7 @@ pub fn trans_closure(ccx: &CrateContext,
1726
1723
output_type,
1727
1724
param_substs,
1728
1725
Some ( body. span) ,
1729
- & arena,
1730
- handle_items) ;
1726
+ & arena) ;
1731
1727
let mut bcx = init_function( & fcx, false , output_type) ;
1732
1728
1733
1729
// cleanup scope for the incoming arguments
@@ -1836,8 +1832,7 @@ pub fn trans_fn(ccx: &CrateContext,
1836
1832
llfndecl: ValueRef ,
1837
1833
param_substs: & param_substs,
1838
1834
id: ast:: NodeId ,
1839
- attrs: & [ ast:: Attribute ] ,
1840
- handle_items: HandleItemsFlag ) {
1835
+ attrs: & [ ast:: Attribute ] ) {
1841
1836
let _s = StatRecorder :: new( ccx, ccx. tcx. map. path_to_string( id) . to_string( ) ) ;
1842
1837
debug ! ( "trans_fn(param_substs={})" , param_substs. repr( ccx. tcx( ) ) ) ;
1843
1838
let _icx = push_ctxt( "trans_fn" ) ;
@@ -1857,8 +1852,7 @@ pub fn trans_fn(ccx: &CrateContext,
1857
1852
abi,
1858
1853
false ,
1859
1854
NotUnboxedClosure ,
1860
- |bcx| bcx,
1861
- handle_items) ;
1855
+ |bcx| bcx) ;
1862
1856
}
1863
1857
1864
1858
pub fn trans_enum_variant( ccx: & CrateContext ,
@@ -1964,7 +1958,7 @@ fn trans_enum_variant_or_tuple_like_struct(ccx: &CrateContext,
1964
1958
1965
1959
let arena = TypedArena :: new( ) ;
1966
1960
let fcx = new_fn_ctxt( ccx, llfndecl, ctor_id, false, result_ty,
1967
- param_substs, None , & arena, TranslateItems ) ;
1961
+ param_substs, None , & arena) ;
1968
1962
let bcx = init_function( & fcx, false, result_ty) ;
1969
1963
1970
1964
assert!( !fcx. needs_ret_allocas) ;
@@ -2074,8 +2068,7 @@ pub fn trans_item(ccx: &CrateContext, item: &ast::Item) {
2074
2068
llfn,
2075
2069
& param_substs : : empty( ) ,
2076
2070
item. id,
2077
- item. attrs. as_slice( ) ,
2078
- TranslateItems) ;
2071
+ item. attrs. as_slice( ) ) ;
2079
2072
}
2080
2073
} else {
2081
2074
// Be sure to travel more than just one layer deep to catch nested
0 commit comments