Skip to content

Commit 802551e

Browse files
committed
---
yaml --- r: 171477 b: refs/heads/batch c: bd4119f h: refs/heads/master i: 171475: aa7b96b v: v3
1 parent bec635b commit 802551e

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: ac8e10519a298cdad3acb50506af3eec79995729
32+
refs/heads/batch: bd4119f9654eda89e359234a08b1ac4fae53287c
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/libcore/macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ macro_rules! write {
186186
#[macro_export]
187187
#[stable]
188188
macro_rules! writeln {
189-
($dst:expr, $fmt:expr, $($arg:tt)*) => (
190-
write!($dst, concat!($fmt, "\n") $($arg)*)
191-
);
192189
($dst:expr, $fmt:expr) => (
193190
write!($dst, concat!($fmt, "\n"))
194-
)
191+
);
192+
($dst:expr, $fmt:expr, $($arg:expr),*) => (
193+
write!($dst, concat!($fmt, "\n"), $($arg,)*)
194+
);
195195
}
196196

197197
/// A utility macro for indicating unreachable code.

branches/batch/src/libstd/rt/macros.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,24 @@
1414
//! they aren't defined anywhere outside of the `rt` module.
1515
1616
macro_rules! rterrln {
17-
($fmt:expr $($arg:tt)*) => ( {
18-
::rt::util::dumb_print(format_args!(concat!($fmt, "\n") $($arg)*))
17+
($fmt:expr) => ( {
18+
::rt::util::dumb_print(format_args!(concat!($fmt, "\n")))
19+
} );
20+
($fmt:expr, $($arg:expr),*) => ( {
21+
::rt::util::dumb_print(format_args!(concat!($fmt, "\n"), $($arg)*))
1922
} )
2023
}
2124

2225
// Some basic logging. Enabled by passing `--cfg rtdebug` to the libstd build.
2326
macro_rules! rtdebug {
24-
($($arg:tt)*) => ( {
27+
($arg:expr) => ( {
2528
if cfg!(rtdebug) {
26-
rterrln!($($arg)*)
29+
rterrln!($arg)
30+
}
31+
} );
32+
($str:expr, $($arg:expr),*) => ( {
33+
if cfg!(rtdebug) {
34+
rterrln!($str, $($arg)*)
2735
}
2836
})
2937
}

branches/batch/src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ fn is_in_follow(cx: &ExtCtxt, tok: &Token, frag: &str) -> bool {
422422
},
423423
"stmt" | "expr" => {
424424
match *tok {
425-
Comma | Semi => true,
425+
FatArrow | Comma | Semi => true,
426426
_ => false
427427
}
428428
},
@@ -434,7 +434,7 @@ fn is_in_follow(cx: &ExtCtxt, tok: &Token, frag: &str) -> bool {
434434
},
435435
"path" | "ty" => {
436436
match *tok {
437-
Comma | RArrow | Colon | Eq | Gt => true,
437+
Comma | FatArrow | Colon | Eq | Gt => true,
438438
Ident(i, _) if i.as_str() == "as" => true,
439439
_ => false
440440
}

0 commit comments

Comments
 (0)