about summary refs log tree commit diff
path: root/src/libsyntax/parse/comments.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-03-08 12:39:42 -0800
committerBrian Anderson <banderson@mozilla.com>2013-03-11 23:19:42 -0700
commit82f190355b07f941bcc98408ea84c02b629991cf (patch)
tree3f6f1c768cb9e4708aff36b5d720805162d95a8b /src/libsyntax/parse/comments.rs
parent2fef18abf2b6a9b3c336b1da5b8a08a22438ad4c (diff)
downloadrust-82f190355b07f941bcc98408ea84c02b629991cf.tar.gz
rust-82f190355b07f941bcc98408ea84c02b629991cf.zip
Remove uses of log
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
-rw-r--r--src/libsyntax/parse/comments.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs
index 494ef3a81a0..360cdebc670 100644
--- a/src/libsyntax/parse/comments.rs
+++ b/src/libsyntax/parse/comments.rs
@@ -183,7 +183,7 @@ fn read_line_comments(rdr: @mut StringReader, code_to_the_left: bool,
     let mut lines: ~[~str] = ~[];
     while rdr.curr == '/' && nextch(rdr) == '/' {
         let line = read_one_line_comment(rdr);
-        log(debug, line);
+        debug!("%s", line);
         if is_doc_comment(line) { // doc-comments are not put in comments
             break;
         }
@@ -221,7 +221,7 @@ fn trim_whitespace_prefix_and_push_line(lines: &mut ~[~str],
             s1 = str::slice(s, col, len);
         } else { s1 = ~""; }
     } else { s1 = /*bad*/ copy s; }
-    log(debug, ~"pushing line: " + s1);
+    debug!("pushing line: %s", s1);
     lines.push(s1);
 }