From e5d095d67e3926fa104ac495076fe9d4cd4f5562 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Tue, 31 Jan 2012 17:05:20 -0800 Subject: Change option::t to option Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming). --- src/comp/driver/driver.rs | 10 +++++----- src/comp/driver/session.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/comp/driver') diff --git a/src/comp/driver/driver.rs b/src/comp/driver/driver.rs index 8781c07b4aa..3a96762f41e 100644 --- a/src/comp/driver/driver.rs +++ b/src/comp/driver/driver.rs @@ -105,8 +105,8 @@ enum compile_upto { fn compile_upto(sess: session, cfg: ast::crate_cfg, input: str, upto: compile_upto, - outputs: option::t) - -> {crate: @ast::crate, tcx: option::t} { + outputs: option) + -> {crate: @ast::crate, tcx: option} { let time_passes = sess.opts.time_passes; let crate = time(time_passes, "parsing", bind parse_input(sess, cfg, input)); @@ -197,7 +197,7 @@ fn compile_upto(sess: session, cfg: ast::crate_cfg, } fn compile_input(sess: session, cfg: ast::crate_cfg, input: str, - outdir: option::t, output: option::t) { + outdir: option, output: option) { let upto = if sess.opts.parse_only { cu_parse } else if sess.opts.no_trans { cu_no_trans } @@ -504,8 +504,8 @@ fn opts() -> [getopts::opt] { type output_filenames = @{out_filename: str, obj_filename:str}; fn build_output_filenames(ifile: str, - odir: option::t, - ofile: option::t, + odir: option, + ofile: option, sess: session) -> output_filenames { let obj_path = ""; diff --git a/src/comp/driver/session.rs b/src/comp/driver/session.rs index 81f1c76a2c9..897e367251c 100644 --- a/src/comp/driver/session.rs +++ b/src/comp/driver/session.rs @@ -40,7 +40,7 @@ type options = time_llvm_passes: bool, output_type: back::link::output_type, addl_lib_search_paths: [str], - maybe_sysroot: option::t, + maybe_sysroot: option, target_triple: str, cfg: ast::crate_cfg, test: bool, @@ -58,7 +58,7 @@ type session = @{targ_cfg: @config, parse_sess: parse_sess, codemap: codemap::codemap, // For a library crate, this is always none - mutable main_fn: option::t<(node_id, codemap::span)>, + mutable main_fn: option<(node_id, codemap::span)>, span_diagnostic: diagnostic::span_handler, filesearch: filesearch::filesearch, mutable building_library: bool, -- cgit 1.4.1-3-g733a5