summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorHaitao Li <lihaitao@gmail.com>2012-01-19 14:14:22 +0800
committerHaitao Li <lihaitao@gmail.com>2012-01-19 17:25:15 +0800
commit45c0651a49d56972cd69c651eccba384e23839f7 (patch)
treedff1943fee35a2d688174e6ae91f01bae88e6cb8 /src/comp
parent90cd795b8bc22719e43183444d1963eda5161de6 (diff)
downloadrust-45c0651a49d56972cd69c651eccba384e23839f7.tar.gz
rust-45c0651a49d56972cd69c651eccba384e23839f7.zip
rustc: Use io::println for time-passes data
Issue #1561
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/driver/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/driver/driver.rs b/src/comp/driver/driver.rs
index be5e4ea65fb..9cb636716b9 100644
--- a/src/comp/driver/driver.rs
+++ b/src/comp/driver/driver.rs
@@ -104,8 +104,8 @@ fn time<T>(do_it: bool, what: str, thunk: fn@() -> T) -> T {
     let start = std::time::precise_time_s();
     let rv = thunk();
     let end = std::time::precise_time_s();
-    #error("time: %s took %s s", what,
-           float::to_str(end - start, 3u));
+    std::io::println(#fmt["time: %s took %s s", what,
+                          float::to_str(end - start, 3u)]);
     ret rv;
 }