From 2e0d07540702ac6cabcc5670660c72f898d5cbd2 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 30 Sep 2010 17:39:37 -0700 Subject: Fix bug in bind thunks failing top drop unbound args; add test and adjust rustc to use bind again. --- src/rt/rust_builtin.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 8654e050..3a89cd5c 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -338,6 +338,10 @@ debug_fn(rust_task *task, type_desc *t, rust_fn *fn) debug_tydesc_helper(task, t); task->log(rust_log::STDLIB, " thunk at 0x%" PRIxPTR, fn->thunk); task->log(rust_log::STDLIB, " closure at 0x%" PRIxPTR, fn->closure); + if (fn->closure) { + task->log(rust_log::STDLIB, " refcount %" PRIdPTR, + fn->closure->ref_count); + } } extern "C" CDECL void * -- cgit v1.2.3