Skip to content

Commit cbf6e98

Browse files
committed
---
yaml --- r: 30015 b: refs/heads/incoming c: 38891b9 h: refs/heads/master i: 30013: b140f2e 30011: 3bf4871 30007: 9ab3e1f 29999: 5766600 29983: 4775308 29951: f50bb74 v: v3
1 parent 3d6ae90 commit cbf6e98

14 files changed

+37
-37
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 345363866c4e66f97b54bd9c79f3a94fd30a555d
9+
refs/heads/incoming: 38891b91bfe5d3fd10e841dbc6f67965bed141ea
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/test/bench/msgsend-pipes-shared.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import io::WriterUtil;
1616

1717
import pipes::{port, chan, SharedChan};
1818

19-
macro_rules! move_out {
19+
macro_rules! move_out (
2020
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
21-
}
21+
)
2222

2323
enum request {
2424
get_count,

branches/incoming/src/test/bench/msgsend-pipes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import io::WriterUtil;
1212

1313
import pipes::{port, PortSet, chan};
1414

15-
macro_rules! move_out {
15+
macro_rules! move_out (
1616
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
17-
}
17+
)
1818

1919
enum request {
2020
get_count,

branches/incoming/src/test/bench/pingpong.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ proto! pingpong_unbounded {
3232
}
3333

3434
// This stuff should go in libcore::pipes
35-
macro_rules! move_it {
35+
macro_rules! move_it (
3636
{ $x:expr } => { let t <- *ptr::addr_of($x); t }
37-
}
37+
)
3838

39-
macro_rules! follow {
39+
macro_rules! follow (
4040
{
4141
$($message:path($($x: ident),+) -> $next:ident $e:expr)+
4242
} => (
@@ -62,7 +62,7 @@ macro_rules! follow {
6262
_ => { fail }
6363
}
6464
)
65-
}
65+
)
6666

6767
fn switch<T: send, Tb: send, U>(+endp: pipes::recv_packet_buffered<T, Tb>,
6868
f: fn(+option<T>) -> U) -> U {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ import comm::port;
3434
import comm::recv;
3535
import comm::send;
3636

37-
macro_rules! move_out {
37+
macro_rules! move_out (
3838
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
39-
}
39+
)
4040

4141
trait word_reader {
4242
fn read_word() -> option<~str>;

branches/incoming/src/test/run-pass/html-literals.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ left.
1515
1616
*/
1717

18-
macro_rules! html {
18+
macro_rules! html (
1919
{ $($body:tt)* } => (
2020
parse_node!( []; []; $($body)* )
2121
)
22-
}
22+
)
2323

24-
macro_rules! parse_node {
24+
macro_rules! parse_node (
2525
{
2626
[:$head:ident ($(:$head_nodes:expr),*)
2727
$(:$tags:ident ($(:$tag_nodes:expr),*))*];
@@ -72,7 +72,7 @@ macro_rules! parse_node {
7272
);
7373

7474
{ []; [:$e:expr]; } => ( $e );
75-
}
75+
)
7676

7777
fn main() {
7878
let page = html! (

branches/incoming/src/test/run-pass/macro-2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ fn main() {
99

1010
assert (mylambda!(y, y * 2)(8) == 16);
1111

12-
macro_rules! mylambda_tt{
12+
macro_rules! mylambda_tt(
1313
{$x:ident, $body:expr} => {
1414
fn f($x: int) -> int { return $body; };
1515
f
1616
}
17-
}
17+
)
1818

1919
assert(mylambda_tt!(y, y * 2)(8) == 16)
2020
}

branches/incoming/src/test/run-pass/macro-3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ fn main() {
55

66
assert (trivial!() == 16);
77

8-
macro_rules! trivial_tt{
8+
macro_rules! trivial_tt(
99
{} => {1*2*4*2*1}
10-
}
10+
)
1111
assert(trivial_tt!() == 16);
1212
}

branches/incoming/src/test/run-pass/macro-by-example-1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
fn main() {
33
#macro[[#apply[f, [x, ...]], f(x, ...)]];
44

5-
macro_rules! apply_tt{
5+
macro_rules! apply_tt(
66
{$f:expr, ($($x:expr),*)} => {$f($($x),*)}
7-
}
7+
)
88

99
fn add(a: int, b: int) -> int { return a + b; }
1010

branches/incoming/src/test/run-pass/macro-interpolation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
macro_rules! overly_complicated {
2+
macro_rules! overly_complicated (
33
{$fnname:ident, $arg:ident, $ty:ty, $body:block, $val:expr, $pat:pat, $res:path} =>
44
{
55
fn $fnname($arg: $ty) -> option<$ty> $body
@@ -11,7 +11,7 @@ macro_rules! overly_complicated {
1111
}
1212
}
1313

14-
}
14+
)
1515
fn main() {
1616
assert overly_complicated!(f, x, option<uint>, { return some(x); },
1717
some(8u), some(y), y) == 8u

branches/incoming/src/test/run-pass/macro.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ fn main() {
44
#macro[[#m1[a], a * 4]];
55
assert (m1!(2) == 8);
66

7-
macro_rules! m1tt {
7+
macro_rules! m1tt (
88
{$a:expr} => {$a*4}
9-
};
9+
);
1010
assert(m1tt!(2) == 8);
1111
}

branches/incoming/src/test/run-pass/pipe-bank-proto.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ proto! bank {
3232
}
3333
}
3434

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

3939
fn switch<T: send, U>(+endp: pipes::recv_packet<T>,
4040
f: fn(+option<T>) -> U) -> U {
@@ -43,7 +43,7 @@ fn switch<T: send, U>(+endp: pipes::recv_packet<T>,
4343

4444
fn move_it<T>(-x: T) -> T { x }
4545

46-
macro_rules! follow {
46+
macro_rules! follow (
4747
{
4848
$($message:path$(($($x: ident),+))||* -> $next:ident $e:expr)+
4949
} => (
@@ -54,7 +54,7 @@ macro_rules! follow {
5454
_ => { fail }
5555
}
5656
);
57-
}
57+
)
5858

5959
fn client_follow(+bank: bank::client::login) {
6060
import bank::*;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import double_buffer::client::*;
99
import double_buffer::give_buffer;
1010

11-
macro_rules! select_if {
11+
macro_rules! select_if (
1212
{
1313
$index:expr,
1414
$count:expr,
@@ -48,9 +48,9 @@ macro_rules! select_if {
4848
} => {
4949
fail
5050
}
51-
}
51+
)
5252

53-
macro_rules! select {
53+
macro_rules! select (
5454
{
5555
$( $port:path => {
5656
$($message:path$(($($x: ident),+))dont_type_this*
@@ -62,7 +62,7 @@ macro_rules! select {
6262
$($message$(($($x),+))dont_type_this* -> $next $e),+
6363
], )+)
6464
}
65-
}
65+
)
6666

6767
// Types and protocols
6868
struct Buffer {

branches/incoming/src/test/run-pass/select-macro.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44

55
// select!
6-
macro_rules! select_if {
6+
macro_rules! select_if (
77

88
{
99
$index:expr,
@@ -44,9 +44,9 @@ macro_rules! select_if {
4444
)
4545
}
4646
};
47-
}
47+
)
4848

49-
macro_rules! select {
49+
macro_rules! select (
5050
{
5151
$( $port:path => {
5252
$($message:path$(($($x: ident),+))dont_type_this*
@@ -58,6 +58,6 @@ macro_rules! select {
5858
$(type_this $message$(($(x $x),+))dont_type_this* -> $next => { $e }),+
5959
])+)
6060
}
61-
}
61+
)
6262

6363
}

0 commit comments

Comments
 (0)