Skip to content

Commit 5b9fd0f

Browse files
committed
---
yaml --- r: 23417 b: refs/heads/master c: 77e83d8 h: refs/heads/master i: 23415: 48f7f8e v: v3
1 parent 1e0c022 commit 5b9fd0f

17 files changed

+43
-43
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c74a442e86abf885b53dba8a1a33359c70f49e15
2+
refs/heads/master: 77e83d83a9a93188c3bb80ea2bb09f2e5fd2579f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/future.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ fn with<A,B>(future: &Future<A>, blk: fn((&A)) -> B) -> B {
134134
blk(v)
135135
}
136136

137-
proto! future_pipe {
137+
proto! future_pipe (
138138
waiting:recv<T:send> {
139139
completed(T) -> !
140140
}
141-
}
141+
)
142142

143143
#[test]
144144
fn test_from_value() {

trunk/src/libcore/pipes.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ directions they can flow at any given point are determined by a
77
protocol. Below is an example protocol.
88
99
~~~
10-
proto! pingpong {
10+
proto! pingpong (
1111
ping: send {
1212
ping -> pong
1313
}
1414
pong: recv {
1515
pong -> ping
1616
}
17-
}
17+
)
1818
~~~
1919
2020
The `proto!` syntax extension will convert this into a module called
@@ -893,11 +893,11 @@ fn spawn_service_recv<T: send, Tb: send>(
893893

894894
// Streams - Make pipes a little easier in general.
895895

896-
proto! streamp {
896+
proto! streamp (
897897
open:send<T: send> {
898898
data(T) -> open<T>
899899
}
900-
}
900+
)
901901

902902
/// A trait for things that can send multiple messages.
903903
trait channel<T: send> {
@@ -1138,11 +1138,11 @@ impl<T: send, U: send, Left: selectable recv<T>, Right: selectable recv<U>>
11381138
}
11391139
}
11401140

1141-
proto! oneshot {
1141+
proto! oneshot (
11421142
oneshot:send<T:send> {
11431143
send(T) -> !
11441144
}
1145-
}
1145+
)
11461146

11471147
/// The send end of a oneshot pipe.
11481148
type chan_one<T: send> = oneshot::client::oneshot<T>;

trunk/src/libsyntax/ext/pipes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
This is frequently called the pipe compiler. It handles code such as...
44
55
~~~
6-
proto! pingpong {
6+
proto! pingpong (
77
ping: send {
88
ping -> pong
99
}
1010
pong: recv {
1111
pong -> ping
1212
}
13-
}
13+
)
1414
~~~
1515
1616
There are several components:

trunk/src/test/bench/msgsend-ring-pipes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import std::time;
1515

1616
import pipes::recv;
1717

18-
proto! ring {
18+
proto! ring (
1919
num:send {
2020
num(uint) -> num
2121
}
22-
}
22+
)
2323

2424
fn macros() {
2525
#macro[

trunk/src/test/bench/pingpong.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ use std;
77
import pipes::{spawn_service, recv};
88
import std::time::precise_time_s;
99

10-
proto! pingpong {
10+
proto! pingpong (
1111
ping: send {
1212
ping -> pong
1313
}
1414

1515
pong: recv {
1616
pong -> ping
1717
}
18-
}
18+
)
1919

20-
proto! pingpong_unbounded {
20+
proto! pingpong_unbounded (
2121
ping: send {
2222
ping -> pong
2323
}
@@ -29,7 +29,7 @@ proto! pingpong_unbounded {
2929
you_will_never_catch_me: send {
3030
never_ever_ever -> you_will_never_catch_me
3131
}
32-
}
32+
)
3333

3434
// This stuff should go in libcore::pipes
3535
macro_rules! move_it (

trunk/src/test/bench/task-perf-word-count-generic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ mod map_reduce {
142142
}
143143

144144

145-
proto! ctrl_proto {
145+
proto! ctrl_proto (
146146
open: send<K: copy send, V: copy send> {
147147
find_reducer(K) -> reducer_response<K, V>,
148148
mapper_done -> !
@@ -151,7 +151,7 @@ mod map_reduce {
151151
reducer_response: recv<K: copy send, V: copy send> {
152152
reducer(Chan<reduce_proto<V>>) -> open<K, V>
153153
}
154-
}
154+
)
155155

156156
enum reduce_proto<V: copy send> { emit_val(V), done, addref, release }
157157

trunk/src/test/run-pass/issue-2834.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
//
33
// xfail-test
44

5-
proto! streamp {
5+
proto! streamp (
66
open:send<T: send> {
77
data(T) -> open<T>
88
}
9-
}
9+
)
1010

1111
fn rendezvous() {
1212
let (c, s) = streamp::init();

trunk/src/test/run-pass/issue-2930.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
proto! stream {
1+
proto! stream (
22
stream:send<T:send> {
33
send(T) -> stream<T>
44
}
5-
}
5+
)
66

77
fn main() {
88
let (bc, _bp) = stream::init();

trunk/src/test/run-pass/pipe-bank-proto.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type password = ~str;
1111
type money = float;
1212
type amount = float;
1313

14-
proto! bank {
14+
proto! bank (
1515
login:send {
1616
login(username, password) -> login_response
1717
}
@@ -30,7 +30,7 @@ proto! bank {
3030
money(money) -> connected,
3131
insufficient_funds -> connected
3232
}
33-
}
33+
)
3434

3535
macro_rules! move_it (
3636
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }

trunk/src/test/run-pass/pipe-detect-term.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import std::uv;
99

1010
import pipes::{try_recv, recv};
1111

12-
proto! oneshot {
12+
proto! oneshot (
1313
waiting:send {
1414
signal -> !
1515
}
16-
}
16+
)
1717

1818
fn main() {
1919
let iotask = uv::global_loop::get();

trunk/src/test/run-pass/pipe-peek.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std;
44
import std::timer::sleep;
55
import std::uv;
66

7-
proto! oneshot {
7+
proto! oneshot (
88
waiting:send {
99
signal -> !
1010
}
11-
}
11+
)
1212

1313
fn main() {
1414
let (c, p) = oneshot::init();

trunk/src/test/run-pass/pipe-pingpong-proto.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
// xfail-pretty
44

5-
proto! pingpong {
5+
proto! pingpong (
66
ping:send {
77
ping -> pong
88
}
99

1010
pong:recv {
1111
pong -> ping
1212
}
13-
}
13+
)
1414

1515
mod test {
1616
import pipes::recv;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct Buffer {
7171
drop { }
7272
}
7373

74-
proto! double_buffer {
74+
proto! double_buffer (
7575
acquire:send {
7676
request -> wait_buffer
7777
}
@@ -83,7 +83,7 @@ proto! double_buffer {
8383
release:send {
8484
release(Buffer) -> acquire
8585
}
86-
}
86+
)
8787

8888
// Code examples
8989
fn render(_buffer: &Buffer) {

trunk/src/test/run-pass/pipe-select-macro.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// xfail-pretty
22

33
// Protocols
4-
proto! foo {
4+
proto! foo (
55
foo:recv {
66
do_foo -> foo
77
}
8-
}
8+
)
99

10-
proto! bar {
10+
proto! bar (
1111
bar:recv {
1212
do_bar(int) -> barbar,
1313
do_baz(bool) -> bazbar,
@@ -20,7 +20,7 @@ proto! bar {
2020
bazbar:send {
2121
rebazbar -> bar
2222
}
23-
}
23+
)
2424

2525
fn macros() {
2626
include!("select-macro.rs");

trunk/src/test/run-pass/pipe-select.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import std::uv;
77

88
import pipes::{recv, select};
99

10-
proto! oneshot {
10+
proto! oneshot (
1111
waiting:send {
1212
signal -> !
1313
}
14-
}
14+
)
1515

16-
proto! stream {
16+
proto! stream (
1717
stream:send<T:send> {
1818
send(T) -> stream<T>
1919
}
20-
}
20+
)
2121

2222
fn main() {
2323
import oneshot::client::*;

trunk/src/test/run-pass/pipe-sleep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import std::timer::sleep;
55
import std::uv;
66
import pipes::recv;
77

8-
proto! oneshot {
8+
proto! oneshot (
99
waiting:send {
1010
signal -> !
1111
}
12-
}
12+
)
1313

1414
fn main() {
1515
import oneshot::client::*;

0 commit comments

Comments
 (0)