Skip to content

Commit 668b39c

Browse files
committed
Use match move in pingpong, delete a FIXME
1 parent 915897b commit 668b39c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/test/bench/pingpong.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ macro_rules! follow (
4141
$($message:path($($x: ident),+) -> $next:ident $e:expr)+
4242
} => (
4343
|m| match move m {
44-
$(Some($message($($x,)* next)) => {
45-
// FIXME (#2329) use regular move here once move out of
46-
// enums is supported.
47-
let $next = unsafe { move_it!(next) };
44+
$(Some($message($($x,)* move next)) => {
45+
let $next = next;
4846
$e })+
4947
_ => { fail }
5048
}
@@ -54,10 +52,8 @@ macro_rules! follow (
5452
$($message:path -> $next:ident $e:expr)+
5553
} => (
5654
|m| match move m {
57-
$(Some($message(next)) => {
58-
// FIXME (#2329) use regular move here once move out of
59-
// enums is supported.
60-
let $next = unsafe { move_it!(next) };
55+
$(Some($message(move next)) => {
56+
let $next = next;
6157
$e })+
6258
_ => { fail }
6359
}

0 commit comments

Comments
 (0)