diff options
| author | bors <bors@rust-lang.org> | 2014-05-16 13:11:23 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-16 13:11:23 -0700 |
| commit | 5e10686aabb7253e6a6e660e72c7f5de8bbba3de (patch) | |
| tree | c9201890e56ad79f87fdefd95f1f332d91fffa75 /src/libsyntax/ext/format.rs | |
| parent | 25c54226c3e7dd6f59cf2e92238a4d79d8b0128d (diff) | |
| parent | b84c0dc2d695c99b64653d125c367fce2ae591c4 (diff) | |
auto merge of #14233 : pcwalton/rust/detildestr-morelibs, r=alexcrichton
r? @alexcrichton
Diffstat (limited to 'src/libsyntax/ext/format.rs')
| -rw-r--r-- | src/libsyntax/ext/format.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ext/format.rs b/src/libsyntax/ext/format.rs index e92ce139d00..01124fdfa54 100644 --- a/src/libsyntax/ext/format.rs +++ b/src/libsyntax/ext/format.rs @@ -886,7 +886,9 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt, sp: Span, } match parser.errors.shift() { Some(error) => { - cx.ecx.span_err(efmt.span, "invalid format string: " + error); + cx.ecx.span_err(efmt.span, + format_strbuf!("invalid format string: {}", + error).as_slice()); return DummyResult::raw_expr(sp); } None => {} |
