diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-08-12 06:36:51 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-08-16 15:05:56 -0700 |
| commit | 4abc471390d897e97e07eafcb723a8dcb59c520f (patch) | |
| tree | ddd4e2cd31c18e1f786ed9b240b1dfe2cd947e46 /src/comp/driver | |
| parent | 4c9049c50c5c32f556eaefbcc50209ef8ee353d0 (diff) | |
| download | rust-4abc471390d897e97e07eafcb723a8dcb59c520f.tar.gz rust-4abc471390d897e97e07eafcb723a8dcb59c520f.zip | |
Port the compiler to foo<T> decl syntax.
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 8bd185bb9d4..b2ae862dc74 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -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(); |
