Tag a bunch of destructors that need mutable self with FIXME for #4330. Close #4943.

This commit is contained in:
Ben Blum
2013-06-10 18:18:04 -04:00
parent d25fae0e10
commit 8081aea3b8
5 changed files with 5 additions and 2 deletions

View File

@@ -323,6 +323,7 @@ impl Drop for TCB {
// Runs on task exit.
fn finalize(&self) {
unsafe {
// FIXME(#4330) Need self by value to get mutability.
let this: &mut TCB = transmute(self);
// If we are failing, the whole taskgroup needs to die.