about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBen Blum <bblum@andrew.cmu.edu>2013-07-31 16:30:14 -0400
committerBen Blum <bblum@andrew.cmu.edu>2013-08-01 16:52:37 -0400
commitaeaed77301397c6ab0c4f5413dbd4b7f0d5b5c9a (patch)
treee4182d5429fbb2189860dd06323b30c63246be6d /src/libstd
parent036a6d2f0080abd10521f7999af7100e5bcaaffe (diff)
downloadrust-aeaed77301397c6ab0c4f5413dbd4b7f0d5b5c9a.tar.gz
rust-aeaed77301397c6ab0c4f5413dbd4b7f0d5b5c9a.zip
Make a forgotten assert in comm be cfg(test)-dependent
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rt/comm.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/rt/comm.rs b/src/libstd/rt/comm.rs
index 11ba42f805b..eb56e4a78c0 100644
--- a/src/libstd/rt/comm.rs
+++ b/src/libstd/rt/comm.rs
@@ -375,9 +375,7 @@ impl<T> Drop for PortOne<T> {
                     // receiver was killed awake. The task can't still be
                     // blocked (we are it), but we need to free the handle.
                     let recvr = BlockedTask::cast_from_uint(task_as_state);
-                    // FIXME(#7554)(bblum): Make this cfg(test) dependent.
-                    // in a later commit.
-                    assert!(recvr.wake().is_none());
+                    recvr.assert_already_awake();
                 }
             }
         }