We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c97314 commit a88d9efCopy full SHA for a88d9ef
src/rt/rust_cc.cpp
@@ -419,16 +419,9 @@ sweep(rust_task *task, const std::set<void *> &marked) {
419
while (begin != end) {
420
void *alloc = begin->first;
421
if (marked.find(alloc) == marked.end()) {
422
- const type_desc *tydesc = begin->second;
423
-
424
//DPRINT("object is part of a cycle: %p\n", alloc);
425
426
- // Run the destructor.
427
- // TODO: What if it fails?
428
- if (tydesc->drop_glue) {
429
- tydesc->drop_glue(NULL, task, (void *)tydesc,
430
- tydesc->first_param, alloc);
431
- }
+ // FIXME: Run the destructor, *if* it's a resource.
432
433
task->free(alloc);
434
}
0 commit comments