about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorBrian Anderson <andersrb@gmail.com>2011-05-31 00:39:19 -0400
committerBrian Anderson <andersrb@gmail.com>2011-05-31 01:23:53 -0400
commit81fc2d8728b622275d55243cbacbc7834641503f (patch)
tree9fd6257c998f76d41dcf91cdc746a1d426a57a6c /src/comp/driver
parented0eb8f45ab979f866208a0c06179bd2f73a2ec1 (diff)
downloadrust-81fc2d8728b622275d55243cbacbc7834641503f.tar.gz
rust-81fc2d8728b622275d55243cbacbc7834641503f.zip
rustc: Remove unneeded type params from alt patterns
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/rustc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
index 44c918fca43..fe5c992d531 100644
--- a/src/comp/driver/rustc.rs
+++ b/src/comp/driver/rustc.rs
@@ -272,8 +272,8 @@ fn build_session_options(str binary, getopts::match match)
     };
 
     auto sysroot = alt (sysroot_opt) {
-        case (none[str]) { get_default_sysroot(binary) }
-        case (some[str](?s)) { s }
+        case (none) { get_default_sysroot(binary) }
+        case (some(?s)) { s }
     };
 
     let @session::options sopts =
@@ -376,7 +376,7 @@ fn main(vec[str] args) {
         ret;
     } else {
         alt (output_file) {
-            case (none[str]) {
+            case (none) {
                 let vec[str] parts = str::split(ifile, '.' as u8);
                 vec::pop[str](parts);
                 saved_out_filename = parts.(0);
@@ -392,7 +392,7 @@ fn main(vec[str] args) {
                 auto ofile = str::connect(parts, ".");
                 compile_input(sess, env, ifile, ofile);
             }
-            case (some[str](?ofile)) {
+            case (some(?ofile)) {
                 saved_out_filename = ofile;
                 compile_input(sess, env, ifile, ofile);
             }