Skip to content

Commit 1e0c022

Browse files
committed
---
yaml --- r: 23416 b: refs/heads/master c: c74a442 h: refs/heads/master v: v3
1 parent 48f7f8e commit 1e0c022

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
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: 38891b91bfe5d3fd10e841dbc6f67965bed141ea
2+
refs/heads/master: c74a442e86abf885b53dba8a1a33359c70f49e15
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn from_value<A>(+val: A) -> Future<A> {
6565
}
6666

6767
macro_rules! move_it (
68-
{$x:expr} => { unsafe { let y <- *ptr::addr_of($x); y } }
68+
($x:expr) => { unsafe { let y <- *ptr::addr_of($x); y } }
6969
)
7070

7171
fn from_port<A:send>(+port: future_pipe::client::waiting<A>) -> Future<A> {

trunk/src/libcore/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ fn kill_taskgroup(state: TaskGroupInner, me: *rust_task, is_main: bool) {
10331033
// a proper closure because the #[test]s won't understand. Have to fake it.
10341034
macro_rules! taskgroup_key (
10351035
// Use a "code pointer" value that will never be a real code pointer.
1036-
{} => (unsafe::transmute((-2 as uint, 0u)))
1036+
() => (unsafe::transmute((-2 as uint, 0u)))
10371037
)
10381038

10391039
fn gen_child_taskgroup(linked: bool, supervised: bool)

trunk/src/libsyntax/parse/parser.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ enum view_item_parse_mode {
127127
The important thing is to make sure that lookahead doesn't balk
128128
at INTERPOLATED tokens */
129129
macro_rules! maybe_whole_expr (
130-
{$p:expr} => { match copy $p.token {
130+
($p:expr) => { match copy $p.token {
131131
INTERPOLATED(token::nt_expr(e)) => {
132132
$p.bump();
133133
return pexpr(e);
@@ -142,26 +142,26 @@ macro_rules! maybe_whole_expr (
142142
)
143143

144144
macro_rules! maybe_whole (
145-
{$p:expr, $constructor:ident} => { match copy $p.token {
145+
($p:expr, $constructor:ident) => { match copy $p.token {
146146
INTERPOLATED(token::$constructor(x)) => { $p.bump(); return x; }
147147
_ => ()
148148
}} ;
149-
{deref $p:expr, $constructor:ident} => { match copy $p.token {
149+
(deref $p:expr, $constructor:ident) => { match copy $p.token {
150150
INTERPOLATED(token::$constructor(x)) => { $p.bump(); return *x; }
151151
_ => ()
152152
}} ;
153-
{some $p:expr, $constructor:ident} => { match copy $p.token {
153+
(some $p:expr, $constructor:ident) => { match copy $p.token {
154154
INTERPOLATED(token::$constructor(x)) => { $p.bump(); return some(x); }
155155
_ => ()
156156
}} ;
157-
{iovi $p:expr, $constructor:ident} => { match copy $p.token {
157+
(iovi $p:expr, $constructor:ident) => { match copy $p.token {
158158
INTERPOLATED(token::$constructor(x)) => {
159159
$p.bump();
160160
return iovi_item(x);
161161
}
162162
_ => ()
163163
}} ;
164-
{pair_empty $p:expr, $constructor:ident} => { match copy $p.token {
164+
(pair_empty $p:expr, $constructor:ident) => { match copy $p.token {
165165
INTERPOLATED(token::$constructor(x)) => { $p.bump(); return (~[], x); }
166166
_ => ()
167167
}}

trunk/src/test/run-pass/html-literals.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,62 +16,62 @@ left.
1616
*/
1717

1818
macro_rules! html (
19-
{ $($body:tt)* } => (
19+
( $($body:tt)* ) => (
2020
parse_node!( []; []; $($body)* )
2121
)
2222
)
2323

2424
macro_rules! parse_node (
25-
{
25+
(
2626
[:$head:ident ($(:$head_nodes:expr),*)
2727
$(:$tags:ident ($(:$tag_nodes:expr),*))*];
2828
[$(:$nodes:expr),*];
2929
</$tag:ident> $($rest:tt)*
30-
} => (
30+
) => (
3131
parse_node!(
3232
[$(: $tags ($(:$tag_nodes),*))*];
3333
[$(:$head_nodes,)* :tag(stringify!($head), ~[$($nodes),*])];
3434
$($rest)*
3535
)
3636
);
3737

38-
{
38+
(
3939
[$(:$tags:ident ($(:$tag_nodes:expr),*) )*];
4040
[$(:$nodes:expr),*];
4141
<$tag:ident> $($rest:tt)*
42-
} => (
42+
) => (
4343
parse_node!(
4444
[:$tag ($(:$nodes)*) $(: $tags ($(:$tag_nodes),*) )*];
4545
[];
4646
$($rest)*
4747
)
4848
);
4949

50-
{
50+
(
5151
[$(:$tags:ident ($(:$tag_nodes:expr),*) )*];
5252
[$(:$nodes:expr),*];
5353
. $($rest:tt)*
54-
} => (
54+
) => (
5555
parse_node!(
5656
[$(: $tags ($(:$tag_nodes),*))*];
5757
[$(:$nodes,)* :text(~".")];
5858
$($rest)*
5959
)
6060
);
6161

62-
{
62+
(
6363
[$(:$tags:ident ($(:$tag_nodes:expr),*) )*];
6464
[$(:$nodes:expr),*];
6565
$word:ident $($rest:tt)*
66-
} => (
66+
) => (
6767
parse_node!(
6868
[$(: $tags ($(:$tag_nodes),*))*];
6969
[$(:$nodes,)* :text(stringify!($word))];
7070
$($rest)*
7171
)
7272
);
7373

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

7777
fn main() {

trunk/src/test/run-pass/macro-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
assert (mylambda!(y, y * 2)(8) == 16);
1111

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

trunk/src/test/run-pass/macro-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn main() {
66
assert (trivial!() == 16);
77

88
macro_rules! trivial_tt(
9-
{} => {1*2*4*2*1}
9+
() => {1*2*4*2*1}
1010
)
1111
assert(trivial_tt!() == 16);
1212
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fn main() {
33
#macro[[#apply[f, [x, ...]], f(x, ...)]];
44

55
macro_rules! apply_tt(
6-
{$f:expr, ($($x:expr),*)} => {$f($($x),*)}
6+
($f:expr, ($($x:expr),*)) => {$f($($x),*)}
77
)
88

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

trunk/src/test/run-pass/macro-interpolation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
macro_rules! overly_complicated (
3-
{$fnname:ident, $arg:ident, $ty:ty, $body:block, $val:expr, $pat:pat, $res:path} =>
3+
($fnname:ident, $arg:ident, $ty:ty, $body:block, $val:expr, $pat:pat, $res:path) =>
44
{
55
fn $fnname($arg: $ty) -> option<$ty> $body
66
match $fnname($val) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
assert (m1!(2) == 8);
66

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

0 commit comments

Comments
 (0)