Skip to content

Commit 45c0651

Browse files
committed
rustc: Use io::println for time-passes data
Issue #1561
1 parent 90cd795 commit 45c0651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ fn time<T>(do_it: bool, what: str, thunk: fn@() -> T) -> T {
104104
let start = std::time::precise_time_s();
105105
let rv = thunk();
106106
let end = std::time::precise_time_s();
107-
#error("time: %s took %s s", what,
108-
float::to_str(end - start, 3u));
107+
std::io::println(#fmt["time: %s took %s s", what,
108+
float::to_str(end - start, 3u)]);
109109
ret rv;
110110
}
111111

0 commit comments

Comments
 (0)