about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-27 08:21:23 -0700
committerbors <bors@rust-lang.org>2013-09-27 08:21:23 -0700
commit10e7f12dafc2e24c9f072d68ff6c4929a28b5c8c (patch)
treeed823788cfc50e0dd7062b46c1819ed281a4384f /src/libsyntax/ext
parent01313a131b1bdef0f2abfc03c5e7f00c8cb00add (diff)
parent409182de6d74889134209e7fc98174eb8f267170 (diff)
downloadrust-10e7f12dafc2e24c9f072d68ff6c4929a28b5c8c.tar.gz
rust-10e7f12dafc2e24c9f072d68ff6c4929a28b5c8c.zip
auto merge of #9550 : alexcrichton/rust/remove-printf, r=thestinger
The 0.8 release was cut, down with printf!
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/expand.rs20
-rw-r--r--src/libsyntax/ext/tt/macro_rules.rs4
2 files changed, 2 insertions, 22 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 9771f7dadca..c62ebb9254e 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -1012,26 +1012,6 @@ pub fn std_macros() -> @str {
         }
     )
 
-    // NOTE(acrichto): start removing this after the next snapshot
-    macro_rules! printf (
-        ($arg:expr) => (
-            print(fmt!(\"%?\", $arg))
-        );
-        ($( $arg:expr ),+) => (
-            print(fmt!($($arg),+))
-        )
-    )
-
-    // NOTE(acrichto): start removing this after the next snapshot
-    macro_rules! printfln (
-        ($arg:expr) => (
-            println(fmt!(\"%?\", $arg))
-        );
-        ($( $arg:expr ),+) => (
-            println(fmt!($($arg),+))
-        )
-    )
-
     macro_rules! format(($($arg:tt)*) => (
         format_args!(::std::fmt::format, $($arg)*)
     ))
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()),