Use match move in select-macro, get rid of a FIXME
This commit is contained in:
parent
b24cba877d
commit
5a849ea8ad
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue