Port the compiler to the typaram foo<T> syntax.

This commit is contained in:
Erick Tryzelaar 2011-08-12 07:15:18 -07:00 committed by Graydon Hoare
parent f764f9a8cf
commit e4a0f997fb
51 changed files with 568 additions and 568 deletions

View file

@ -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);

View file

@ -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;