Skip to content

Commit 5a849ea

Browse files
committed
Use match move in select-macro, get rid of a FIXME
1 parent b24cba8 commit 5a849ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/run-pass/select-macro.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ macro_rules! select_if (
2626
} => {
2727
if $index == $count {
2828
match move pipes::try_recv($port) {
29-
$(Some($message($($(ref $x,)+)* ref next)) => {
30-
// FIXME (#2329) we really want move out of enum here.
31-
let $next = unsafe { let x <- *ptr::addr_of(&(*next)); x };
29+
$(Some($message($($(ref $x,)+)* move next)) => {
30+
let $next = next;
3231
$e
3332
})+
3433
_ => fail

0 commit comments

Comments
 (0)