revoke cleanup of sendable closure once construction completes

This commit is contained in:
Niko Matsakis 2011-12-15 15:59:33 -08:00
parent 52f76400b5
commit 21cc0c6e69

View file

@ -175,6 +175,7 @@ fn store_environment(
check trans_uniq::type_is_unique_box(bcx, box_ty);
let r = trans_uniq::alloc_uniq(bcx, box_ty);
add_clean_free(bcx, r.val, true);
temp_cleanups += [r.val];
dummy_environment_box(bcx, r)
}
ty::closure_block. {