let closure_id = ast_util::local_def(id);
let llfn = get_or_create_declaration_if_unboxed_closure(
bcx,
- closure_id).unwrap();
+ closure_id,
+ &bcx.fcx.param_substs.substs).unwrap();
- let unboxed_closures = bcx.tcx().unboxed_closures.borrow();
- let function_type = (*unboxed_closures)[closure_id]
- .closure_type
- .clone();
+ let function_type = (*bcx.tcx().unboxed_closures.borrow())[closure_id]
+ .closure_type
+ .clone();
let function_type = ty::mk_closure(bcx.tcx(), function_type);
let freevars: Vec<ty::Freevar> =