Fixing illegal moves.

This commit is contained in:
Eric Holk 2012-06-21 14:09:39 -07:00
parent 40559ea839
commit 28ab0e8c03

View File

@ -34,15 +34,9 @@ fn send<T: send>(c: chan<T>, -x: T) {
(*c).with {|cond, data|
let mut xx = none;
xx <-> x;
alt xx {
some(y) {
let mut x <- y;
(*data).push(x);
(*data).push(option::unwrap(xx));
cond.signal();
}
none { fail }
};
}
}
fn recv<T: send>(p: port<T>) -> T {