about summary refs log tree commit diff
path: root/src/rt/rust_task_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
-rw-r--r--src/rt/rust_task_thread.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp
index 63dcd3c846b..d8fb28d5791 100644
--- a/src/rt/rust_task_thread.cpp
+++ b/src/rt/rust_task_thread.cpp
@@ -121,8 +121,6 @@ rust_task_thread::number_of_live_tasks() {
  */
 void
 rust_task_thread::reap_dead_tasks() {
-    I(this, lock.lock_held_by_current_thread());
-
     if (dead_tasks.length() == 0) {
         return;
     }
@@ -358,7 +356,6 @@ rust_task_thread::place_task_in_tls(rust_task *task) {
 
 void
 rust_task_thread::exit() {
-    A(this, !lock.lock_held_by_current_thread(), "Shouldn't have lock");
     scoped_lock with(lock);
     should_exit = true;
     lock.signal();