From 45c0651a49d56972cd69c651eccba384e23839f7 Mon Sep 17 00:00:00 2001 From: Haitao Li Date: Thu, 19 Jan 2012 14:14:22 +0800 Subject: [PATCH] rustc: Use io::println for time-passes data Issue #1561 --- src/comp/driver/driver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comp/driver/driver.rs b/src/comp/driver/driver.rs index be5e4ea65fbf..9cb636716b99 100644 --- a/src/comp/driver/driver.rs +++ b/src/comp/driver/driver.rs @@ -104,8 +104,8 @@ fn time(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; }