about summary refs log tree commit diff
path: root/src/rt/rust_cc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_cc.cpp')
-rw-r--r--src/rt/rust_cc.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/rt/rust_cc.cpp b/src/rt/rust_cc.cpp
index 70bb5aab1ed..aebf472ab36 100644
--- a/src/rt/rust_cc.cpp
+++ b/src/rt/rust_cc.cpp
@@ -419,16 +419,9 @@ sweep(rust_task *task, const std::set<void *> &marked) {
     while (begin != end) {
         void *alloc = begin->first;
         if (marked.find(alloc) == marked.end()) {
-            const type_desc *tydesc = begin->second;
-
             //DPRINT("object is part of a cycle: %p\n", alloc);
 
-            // Run the destructor.
-            // TODO: What if it fails?
-            if (tydesc->drop_glue) {
-                tydesc->drop_glue(NULL, task, (void *)tydesc,
-                                  tydesc->first_param, alloc);
-            }
+            // FIXME: Run the destructor, *if* it's a resource.
 
             task->free(alloc);
         }