Skip to content

Commit c64ffa4

Browse files
committed
Updating examples
1 parent c0874db commit c64ffa4

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/test/run-pass/pipe-presentation-examples.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ macro_rules! select_if {
2121
-> $nexts:ident $es:expr),+
2222
], )*
2323
} => {
24-
log_syntax!{select_if1};
2524
if $index == $count {
2625
match move pipes::try_recv($port) {
2726
$(some($message($($(copy $x,)+)* next)) => {
@@ -47,7 +46,6 @@ macro_rules! select_if {
4746
$index:expr,
4847
$count:expr,
4948
} => {
50-
log_syntax!{select_if2};
5149
fail
5250
}
5351
}
@@ -60,12 +58,6 @@ macro_rules! select {
6058
} )+
6159
} => {
6260
let index = pipes::selecti([$(($port).header()),+]/_);
63-
log_syntax!{select};
64-
log_syntax!{
65-
select_if!{index, 0, $( $port => [
66-
$($message$(($($x),+))dont_type_this* -> $next $e),+
67-
], )+}
68-
};
6961
select_if!{index, 0, $( $port => [
7062
$($message$(($($x),+))dont_type_this* -> $next $e),+
7163
], )+}
@@ -134,11 +126,10 @@ fn draw_two_frames(+channel: double_buffer::client::acquire) {
134126
#[cfg(bad1)]
135127
fn draw_two_frames_bad1(+channel: double_buffer::client::acquire) {
136128
let channel = request(channel);
137-
let channel = select! {
129+
select! {
138130
channel => {
139131
give_buffer(buffer) -> channel {
140132
render(&buffer);
141-
channel
142133
}
143134
}
144135
};
@@ -168,4 +159,4 @@ fn draw_two_frames_bad2(+channel: double_buffer::client::acquire) {
168159
};
169160
}
170161

171-
fn main() { }
162+
fn main() { }

0 commit comments

Comments
 (0)