diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-11 17:01:55 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-11 17:01:55 -0700 |
| commit | 668b39cb5c7beafab33469e2a89dd7ac73fda23e (patch) | |
| tree | e2c57cdafa0785494c20f4f9cdd13978a64d49bb /src/test | |
| parent | 915897b3df8276ea62a648c23f80b3cf1c6902b0 (diff) | |
| download | rust-668b39cb5c7beafab33469e2a89dd7ac73fda23e.tar.gz rust-668b39cb5c7beafab33469e2a89dd7ac73fda23e.zip | |
Use match move in pingpong, delete a FIXME
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/bench/pingpong.rs | 12 |
1 files 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 } } |
