Port the compiler to foo<T> decl syntax.

This commit is contained in:
Erick Tryzelaar 2011-08-12 06:36:51 -07:00 committed by Graydon Hoare
parent 4c9049c50c
commit 4abc471390
20 changed files with 77 additions and 77 deletions

View file

@ -110,7 +110,7 @@ fn parse_input_src(sess: session::session, cfg: &ast::crate_cfg,
ret {crate: crate, src: src};
}
fn time[T](do_it: bool, what: str, thunk: fn() -> T ) -> T {
fn time<T>(do_it: bool, what: str, thunk: fn() -> T ) -> T {
if !do_it { ret thunk(); }
let start = std::time::precise_time_s();
let rv = thunk();