diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-12-16 06:27:50 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2011-12-16 07:17:23 -0800 |
| commit | 2833ca478c19d2f8f150570a6d60b93488debdcc (patch) | |
| tree | 041865de99eb77a1d4504ee29c38691a7f872f34 /src/comp/driver | |
| parent | 0a3626161d5ebb1d2c6839773b0e533d3ec4589c (diff) | |
| download | rust-2833ca478c19d2f8f150570a6d60b93488debdcc.tar.gz rust-2833ca478c19d2f8f150570a6d60b93488debdcc.zip | |
reorder args to the various vec, option fns so blk comes last
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 758f9bf85b6..a97afa7cb83 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -650,10 +650,9 @@ fn main(args: [str]) { let ofile = getopts::opt_maybe_str(match, "o"); let cfg = build_configuration(sess, binary, ifile); let pretty = - option::map::<str, - pp_mode>(bind parse_pretty(sess, _), - getopts::opt_default(match, "pretty", - "normal")); + option::map(getopts::opt_default(match, "pretty", + "normal"), + bind parse_pretty(sess, _)); alt pretty { some::<pp_mode>(ppm) { pretty_print_input(sess, cfg, ifile, ppm); ret; } none::<pp_mode>. {/* continue */ } |
