Skip to content

Commit f2a3270

Browse files
committed
Reorder statements in rustc main to avoid bounds check
1 parent a81fdf0 commit f2a3270

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/comp/driver/rustc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,14 @@ fn main(args: [str]) {
506506
let sopts = build_session_options(match);
507507
let sess = build_session(sopts);
508508
let n_inputs = vec::len::<str>(match.free);
509-
let ofile = getopts::opt_maybe_str(match, "o");
510-
let ifile = match.free[0];
511-
let outputs = build_output_filenames(ifile, ofile, sopts);
512509
if n_inputs == 0u {
513510
sess.fatal("No input filename given.");
514511
} else if n_inputs > 1u {
515512
sess.fatal("Multiple input filenames provided.");
516513
}
514+
let ofile = getopts::opt_maybe_str(match, "o");
515+
let ifile = match.free[0];
516+
let outputs = build_output_filenames(ifile, ofile, sopts);
517517
let cfg = build_configuration(sess, binary, ifile);
518518
let pretty =
519519
option::map::<str,

0 commit comments

Comments
 (0)