Use match move in select-macro, get rid of a FIXME

This commit is contained in:
Tim Chevalier 2012-10-11 17:03:48 -07:00
parent b24cba877d
commit 5a849ea8ad

View file

@ -26,9 +26,8 @@ macro_rules! select_if (
} => {
if $index == $count {
match move pipes::try_recv($port) {
$(Some($message($($(ref $x,)+)* ref next)) => {
// FIXME (#2329) we really want move out of enum here.
let $next = unsafe { let x <- *ptr::addr_of(&(*next)); x };
$(Some($message($($(ref $x,)+)* move next)) => {
let $next = next;
$e
})+
_ => fail