Skip to content

Commit 08df193

Browse files
committed
---
yaml --- r: 3285 b: refs/heads/master c: 23d6a6b h: refs/heads/master i: 3283: e026fba v: v3
1 parent d86b7d8 commit 08df193

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 72f90f0f5f05249a89e6bbc24365660eb3cd5ff4
2+
refs/heads/master: 23d6a6bde127e31444b69d228ebd1e547095150d

trunk/src/comp/front/extfmt.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ fn expand_syntax_ext(&ext_ctxt cx, common::span sp, &vec[@ast::expr] args,
2929
}
3030
auto parse_fmt_err = bind parse_fmt_err_(cx, fmtspan, _);
3131
auto pieces = parse_fmt_string(fmt, parse_fmt_err);
32-
auto args_len = vec::len[@ast::expr](args);
33-
auto fmt_args = vec::slice[@ast::expr](args, 1u, args_len - 1u);
3432
ret pieces_to_expr(cx, sp, pieces, args);
3533
}
3634

trunk/src/test/run-pass/syntax-extension-fmt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ fn test(str actual, str expected) {
1111
fn main() {
1212
test(#fmt("hello %d friends and %s things", 10, "formatted"),
1313
"hello 10 friends and formatted things");
14+
15+
test(#fmt("test"), "test");
16+
1417
// Simple tests for types
1518

1619
test(#fmt("%d", 1), "1");

0 commit comments

Comments
 (0)