From 47e82c85555895c21206c84b62cac19eb351d1b8 Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Fri, 2 Aug 2013 19:35:13 -0400 Subject: [PATCH] (cleanup) Uncomment an assertion that now holds. --- src/libstd/rt/kill.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/libstd/rt/kill.rs b/src/libstd/rt/kill.rs index deec8dd37a60..ef2d0de5312c 100644 --- a/src/libstd/rt/kill.rs +++ b/src/libstd/rt/kill.rs @@ -205,11 +205,10 @@ impl BlockedTask { let flag_arc = match task.death.spare_kill_flag.take() { Some(spare_flag) => spare_flag, None => { - // FIXME(#7544): Uncomment this when terminate_current_task - // stops being *terrible*. That's the only place that violates - // the assumption of "becoming unkillable will fail if the - // task was killed". - // rtassert!(task.unwinder.unwinding); + // A task that kills us won't have a spare kill flag to + // give back to us, so we restore it ourselves here. This + // situation should only arise when we're already failing. + rtassert!(task.unwinder.unwinding); (*task.death.kill_handle.get_ref().get()).killed.clone() } };