diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-24 22:16:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-26 17:05:59 -0700 |
| commit | 409182de6d74889134209e7fc98174eb8f267170 (patch) | |
| tree | 8f8c542b198cdb323038aa803ff6bff7433bd3bb /src/libsyntax | |
| parent | 09a53381974bcf42c0b081cbfcd9f20f1e5d4f04 (diff) | |
| download | rust-409182de6d74889134209e7fc98174eb8f267170.tar.gz rust-409182de6d74889134209e7fc98174eb8f267170.zip | |
Update the compiler to not use printf/printfln
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 3fd394b3652..57ecfed15b8 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -66,7 +66,7 @@ fn generic_extension(cx: @ExtCtxt, rhses: &[@named_match]) -> MacResult { if cx.trace_macros() { - printfln!("%s! { %s }", + println!("{}! \\{ {} \\}", cx.str_of(name), print::pprust::tt_to_str( &ast::tt_delim(@mut arg.to_owned()), @@ -194,7 +194,7 @@ pub fn add_new_extension(cx: @ExtCtxt, rhses: &[@named_match]) -> MacResult { if cx.trace_macros() { - printfln!("%s! { %s }", + println!("{}! \\{ {} \\}", cx.str_of(name), print::pprust::tt_to_str( &ast::tt_delim(@mut arg.to_owned()), |
