From 668b39cb5c7beafab33469e2a89dd7ac73fda23e Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 11 Oct 2012 17:01:55 -0700 Subject: [PATCH] Use match move in pingpong, delete a FIXME --- src/test/bench/pingpong.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/test/bench/pingpong.rs b/src/test/bench/pingpong.rs index 70f98934e1b..8aa64fed346 100644 --- a/src/test/bench/pingpong.rs +++ b/src/test/bench/pingpong.rs @@ -41,10 +41,8 @@ macro_rules! follow ( $($message:path($($x: ident),+) -> $next:ident $e:expr)+ } => ( |m| match move m { - $(Some($message($($x,)* next)) => { - // FIXME (#2329) use regular move here once move out of - // enums is supported. - let $next = unsafe { move_it!(next) }; + $(Some($message($($x,)* move next)) => { + let $next = next; $e })+ _ => { fail } } @@ -54,10 +52,8 @@ macro_rules! follow ( $($message:path -> $next:ident $e:expr)+ } => ( |m| match move m { - $(Some($message(next)) => { - // FIXME (#2329) use regular move here once move out of - // enums is supported. - let $next = unsafe { move_it!(next) }; + $(Some($message(move next)) => { + let $next = next; $e })+ _ => { fail } }