diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-08-08 17:24:12 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-08-08 18:03:27 -0700 |
| commit | c64ffa4f5b72dacb8d1a62a9dd3cbce5807bb927 (patch) | |
| tree | e9c33bdc08c58c65970b798ebb21fd07153eeb9d /src | |
| parent | c0874dbd21c89854c68e8db7201f5557ab5e6259 (diff) | |
| download | rust-c64ffa4f5b72dacb8d1a62a9dd3cbce5807bb927.tar.gz rust-c64ffa4f5b72dacb8d1a62a9dd3cbce5807bb927.zip | |
Updating examples
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/pipe-presentation-examples.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/test/run-pass/pipe-presentation-examples.rs b/src/test/run-pass/pipe-presentation-examples.rs index c772d98d064..949a4a1032e 100644 --- a/src/test/run-pass/pipe-presentation-examples.rs +++ b/src/test/run-pass/pipe-presentation-examples.rs @@ -21,7 +21,6 @@ macro_rules! select_if { -> $nexts:ident $es:expr),+ ], )* } => { - log_syntax!{select_if1}; if $index == $count { match move pipes::try_recv($port) { $(some($message($($(copy $x,)+)* next)) => { @@ -47,7 +46,6 @@ macro_rules! select_if { $index:expr, $count:expr, } => { - log_syntax!{select_if2}; fail } } @@ -60,12 +58,6 @@ macro_rules! select { } )+ } => { let index = pipes::selecti([$(($port).header()),+]/_); - log_syntax!{select}; - log_syntax!{ - select_if!{index, 0, $( $port => [ - $($message$(($($x),+))dont_type_this* -> $next $e),+ - ], )+} - }; select_if!{index, 0, $( $port => [ $($message$(($($x),+))dont_type_this* -> $next $e),+ ], )+} @@ -134,11 +126,10 @@ fn draw_two_frames(+channel: double_buffer::client::acquire) { #[cfg(bad1)] fn draw_two_frames_bad1(+channel: double_buffer::client::acquire) { let channel = request(channel); - let channel = select! { + select! { channel => { give_buffer(buffer) -> channel { render(&buffer); - channel } } }; @@ -168,4 +159,4 @@ fn draw_two_frames_bad2(+channel: double_buffer::client::acquire) { }; } -fn main() { } \ No newline at end of file +fn main() { } |
