Skip to content

Commit 6c6899a

Browse files
paulstansifergraydon
authored andcommitted
---
yaml --- r: 35295 b: refs/heads/master c: e7f07cb h: refs/heads/master i: 35293: 146e460 35291: b44de0d 35287: a092e61 35279: 2b3e882 35263: e650357 v: v3
1 parent 68c0682 commit 6c6899a

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
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: 45bcb10204b3e2e04521a895c3f4216b5eb641ce
2+
refs/heads/master: e7f07cb2a377628922b337fdd08ca2dbbb14f2a5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
fn main() {
44

55
macro_rules! mylambda_tt(
6-
($x:ident, $body:expr) => {
6+
($x:ident, $body:expr) => ({
77
fn f($x: int) -> int { return $body; };
88
f
9-
}
9+
})
1010
)
1111

1212
assert(mylambda_tt!(y, y * 2)(8) == 16)

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

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

22
macro_rules! overly_complicated (
33
($fnname:ident, $arg:ident, $ty:ty, $body:block, $val:expr, $pat:pat, $res:path) =>
4-
{
4+
({
55
fn $fnname($arg: $ty) -> Option<$ty> $body
66
match $fnname($val) {
77
Some($pat) => {
88
$res
99
}
1010
_ => { fail; }
1111
}
12-
}
12+
})
1313

1414
)
1515
fn main() {

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ mod m {
22
pub type t = int;
33
}
44

5-
fn macros() {
6-
macro_rules! foo {
7-
($p:path) => {
8-
fn f() -> $p { 10 }
9-
f()
10-
}
11-
}
5+
macro_rules! foo {
6+
($p:path) => ({
7+
fn f() -> $p { 10 };
8+
f()
9+
})
1210
}
1311

1412
fn main() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ macro_rules! select (
5454
$($message:path$(($($x: ident),+))dont_type_this*
5555
-> $next:ident $e:expr),+
5656
} )+
57-
} => {
57+
} => ({
5858
let index = pipes::selecti([$(($port).header()),+]);
5959
select_if!(index, 0, $( $port => [
6060
$($message$(($($x),+))dont_type_this* -> $next $e),+
6161
], )+)
62-
}
62+
})
6363
)
6464

6565
// Types and protocols

0 commit comments

Comments
 (0)