diff options
| author | Birunthan Mohanathas <birunthan@mohanathas.com> | 2013-07-22 19:03:39 +0300 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-07-24 09:45:20 -0400 |
| commit | d047cf1ec612f766365bde0c9d146b58ef3cc7c7 (patch) | |
| tree | 1e78f76ac07c358321b3d32d2d943a47a8c1dc32 /src/libsyntax/ext | |
| parent | af5a17b7d0788438bb6b39cccfc96a0b13e00250 (diff) | |
| download | rust-d047cf1ec612f766365bde0c9d146b58ef3cc7c7.tar.gz rust-d047cf1ec612f766365bde0c9d146b58ef3cc7c7.zip | |
Change 'print(fmt!(...))' to printf!/printfln! in src/lib*
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index c20e35c299a..4b3c8498380 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -23,8 +23,6 @@ use parse::token::{get_ident_interner, special_idents, gensym_ident, ident_to_st use parse::token::{FAT_ARROW, SEMI, nt_matchers, nt_tt}; use print; -use std::io; - pub fn add_new_extension(cx: @ExtCtxt, sp: span, name: ident, @@ -82,11 +80,11 @@ pub fn add_new_extension(cx: @ExtCtxt, -> MacResult { if cx.trace_macros() { - io::println(fmt!("%s! { %s }", - cx.str_of(name), - print::pprust::tt_to_str( - &ast::tt_delim(@mut arg.to_owned()), - get_ident_interner()))); + printfln!("%s! { %s }", + cx.str_of(name), + print::pprust::tt_to_str( + &ast::tt_delim(@mut arg.to_owned()), + get_ident_interner())); } // Which arm's failure should we report? (the one furthest along) |
