diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-08-12 07:15:18 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-08-16 15:05:56 -0700 |
| commit | e4a0f997fb01b9cbb650532fea1278159faff064 (patch) | |
| tree | 6544a660e7af2a2485a14d200730d38e08ef29e4 /src/comp/driver | |
| parent | f764f9a8cf52e686ba6e54b594e6bbbdd5bc7b32 (diff) | |
| download | rust-e4a0f997fb01b9cbb650532fea1278159faff064.tar.gz rust-e4a0f997fb01b9cbb650532fea1278159faff064.zip | |
Port the compiler to the typaram foo<T> syntax.
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 | ||||
| -rw-r--r-- | src/comp/driver/session.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 0500244d010..8bd185bb9d4 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -437,7 +437,7 @@ fn opts() -> [getopts::opt] { optflag("lib"), optflag("static"), optflag("gc")]; } -fn main(args: vec[str]) { +fn main(args: vec<str>) { let args_ivec = vec::from_vec(args); let binary = vec::shift(args_ivec); let binary_dir = fs::dirname(binary); diff --git a/src/comp/driver/session.rs b/src/comp/driver/session.rs index fb5ab249669..ea3eae60767 100644 --- a/src/comp/driver/session.rs +++ b/src/comp/driver/session.rs @@ -54,7 +54,7 @@ obj session(targ_cfg: @config, parse_sess: parse_sess, // For a library crate, this is always none - mutable main_fn: option::t[node_id], + mutable main_fn: option::t<node_id>, mutable err_count: uint) { fn get_targ_cfg() -> @config { ret targ_cfg; } fn get_opts() -> @options { ret opts; } @@ -111,7 +111,7 @@ obj session(targ_cfg: @config, ret codemap::span_to_str(sp, self.get_codemap()); } fn set_main_id(d: node_id) { main_fn = some(d); } - fn get_main_id() -> option::t[node_id] { main_fn } + fn get_main_id() -> option::t<node_id> { main_fn } } // Local Variables: // fill-column: 78; |
