diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-07-12 14:43:57 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-08-21 17:17:41 -0700 |
| commit | 5da4b4d928c6507f6e67b2d2a4289eef4b8de0ea (patch) | |
| tree | 36503ae5a3f77bc69cd23dc331f3639994d496bd /src/libstd/rt/comm.rs | |
| parent | 77279a73cbafb1735e5cf53820fde65d5cd05957 (diff) | |
std/extra: changing XXX to FIXME; cleanup
* Get rid of by-value-self workarounds; it works now * Remove type annotations, they're not needed anymore
Diffstat (limited to 'src/libstd/rt/comm.rs')
| -rw-r--r-- | src/libstd/rt/comm.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libstd/rt/comm.rs b/src/libstd/rt/comm.rs index 49cf8c239b7..5d55261a69d 100644 --- a/src/libstd/rt/comm.rs +++ b/src/libstd/rt/comm.rs @@ -46,7 +46,7 @@ struct Packet<T> { payload: Option<T>, } -/// A one-shot channel. +// A one-shot channel. pub struct ChanOne<T> { void_packet: *mut Void, suppress_finalize: bool @@ -681,7 +681,7 @@ impl<T> Clone for SharedPort<T> { } } -// XXX: Need better name +// FIXME #7760: Need better name type MegaPipe<T> = (SharedPort<T>, SharedChan<T>); pub fn megapipe<T: Send>() -> MegaPipe<T> { @@ -1027,9 +1027,8 @@ mod test { fn shared_port_stress() { if util::limit_thread_creation_due_to_osx_and_valgrind() { return; } do run_in_mt_newsched_task { - // XXX: Removing these type annotations causes an ICE - let (end_port, end_chan) = stream::<()>(); - let (port, chan) = stream::<()>(); + let (end_port, end_chan) = stream(); + let (port, chan) = stream(); let end_chan = SharedChan::new(end_chan); let port = SharedPort::new(port); let total = stress_factor() + 100; |
