about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2011-12-16 06:27:50 -0800
committerNiko Matsakis <niko@alum.mit.edu>2011-12-16 07:17:23 -0800
commit2833ca478c19d2f8f150570a6d60b93488debdcc (patch)
tree041865de99eb77a1d4504ee29c38691a7f872f34 /src/comp/driver
parent0a3626161d5ebb1d2c6839773b0e533d3ec4589c (diff)
downloadrust-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.rs7
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 */ }