Port the compiler to foo<T> decl syntax.
This commit is contained in:
parent
4c9049c50c
commit
4abc471390
20 changed files with 77 additions and 77 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue