about summary refs log tree commit diff
path: root/src/librustpkg
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustpkg')
-rw-r--r--src/librustpkg/rustpkg.rc4
-rw-r--r--src/librustpkg/util.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc
index 98ce4052eeb..f4393425e18 100644
--- a/src/librustpkg/rustpkg.rc
+++ b/src/librustpkg/rustpkg.rc
@@ -64,7 +64,7 @@ impl PackageScript {
         }
 
         let binary = os::args()[0];
-        let options: @session::options = @{
+        let options = @session::options {
             binary: binary,
             crate_type: session::bin_crate,
             .. *session::basic_options()
@@ -72,7 +72,7 @@ impl PackageScript {
         let input = driver::file_input(script);
         let sess = driver::build_session(options, diagnostic::emit);
         let cfg = driver::build_configuration(sess, binary, input);
-        let {crate, _} = driver::compile_upto(sess, cfg, input,
+        let (crate, _) = driver::compile_upto(sess, cfg, input,
                                               driver::cu_parse, None);
         let mut id = None;
         let mut vers = None;
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index 7f7b3e75b6f..5e549d96490 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -599,7 +599,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
     let test_dir = dir.push(~"test");
     let binary = os::args()[0];
     let matches = getopts(flags, driver::optgroups()).get();
-    let options = @{
+    let options = @session::options {
         crate_type: session::unknown_crate,
         optimize: if opt { session::Aggressive } else { session::No },
         test: test,
@@ -612,7 +612,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
         crate_cfg.push(attr::mk_word_item(@cfg));
     }
 
-    let options = @{
+    let options = @session::options {
         cfg: vec::append(options.cfg, crate_cfg),
         .. *options
     };
@@ -620,7 +620,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
     let cfg = driver::build_configuration(sess, binary, input);
     let mut outputs = driver::build_output_filenames(input, &None, &None,
                                                      sess);
-    let {crate, _} = driver::compile_upto(sess, cfg, input, driver::cu_parse,
+    let (crate, _) = driver::compile_upto(sess, cfg, input, driver::cu_parse,
                                           Some(outputs));
 
     let mut name = None;