librustc: Fix drop finalizer not running for newtype structs.

This commit is contained in:
Luqman Aden 2013-04-29 19:48:28 -07:00
parent 868b7c153c
commit c2b8f98917

View File

@ -2071,6 +2071,7 @@ pub fn trans_tuple_struct(ccx: @CrateContext,
let bcx = copy_args_to_allocas(fcx, bcx, fn_args, raw_llargs, arg_tys);
let repr = adt::represent_type(ccx, tup_ty);
adt::trans_start_init(bcx, repr, fcx.llretptr.get(), 0);
for fields.eachi |i, field| {
let lldestptr = adt::trans_field_ptr(bcx,