Update the compiler to not use printf/printfln

This commit is contained in:
Alex Crichton 2013-09-24 22:16:43 -07:00
parent 09a5338197
commit 409182de6d
80 changed files with 169 additions and 173 deletions

View file

@ -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()),