diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-07-17 17:03:27 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-07-17 17:46:31 -0700 |
| commit | 7b8171ef2d03e4a2235b4bf0af255dab1b53bc25 (patch) | |
| tree | 54194e622a33eacd1c3e04db66304a7c1e60fad0 /src/libcore/future.rs | |
| parent | c858eb06546ce2be77fd284f707f76cb820c6211 (diff) | |
Added liveness analysis for protocols, and removed warnings about empty states.
Diffstat (limited to 'src/libcore/future.rs')
| -rw-r--r-- | src/libcore/future.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcore/future.rs b/src/libcore/future.rs index f26643a6cab..f7efe70b5dc 100644 --- a/src/libcore/future.rs +++ b/src/libcore/future.rs @@ -81,7 +81,7 @@ fn from_port<A:send>(-port: future_pipe::client::waiting<A>) -> future<A> { port_ <-> *port; let port = option::unwrap(port_); alt recv(port) { - future_pipe::completed(data, _next) { #move(data) } + future_pipe::completed(data) { #move(data) } } } } @@ -135,10 +135,8 @@ fn with<A,B>(future: future<A>, blk: fn(A) -> B) -> B { proto! future_pipe { waiting:recv<T:send> { - completed(T) -> terminated + completed(T) -> ! } - - terminated:send { } } #[test] |
