about summary refs log tree commit diff
path: root/src/librustpkg
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-29 00:52:47 -0700
committerbors <bors@rust-lang.org>2013-05-29 00:52:47 -0700
commite3e55c5c042778b0e50710221d6c0abdfc1119f0 (patch)
treeba062ae35ed19b526af19400f6c7844e6d6f20e3 /src/librustpkg
parent149960e0cf4d521465e8aa78fa8a7a247a5afaed (diff)
parentb4a3fe25c6fa35d5b243d6dfaee59306c4bcfda9 (diff)
downloadrust-e3e55c5c042778b0e50710221d6c0abdfc1119f0.tar.gz
rust-e3e55c5c042778b0e50710221d6c0abdfc1119f0.zip
auto merge of #6793 : graydon/rust/drop-ast-before-llvm, r=Aatch
Diffstat (limited to 'src/librustpkg')
-rw-r--r--src/librustpkg/rustpkg.rc2
-rw-r--r--src/librustpkg/util.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustpkg/rustpkg.rc b/src/librustpkg/rustpkg.rc
index a419bffece7..ae4bfc6bc4b 100644
--- a/src/librustpkg/rustpkg.rc
+++ b/src/librustpkg/rustpkg.rc
@@ -101,7 +101,7 @@ impl<'self> PkgScript<'self> {
             input: input,
             sess: sess,
             cfg: cfg,
-            crate: crate,
+            crate: crate.unwrap(),
             build_dir: work_dir
         }
     }
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index 7794dd47b69..80533b2d3b1 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -426,7 +426,7 @@ pub fn compile_crate_from_input(input: &driver::input,
             debug!("Calling compile_upto, outputs = %?", outputs);
             let (crate, _) = driver::compile_upto(sess, copy cfg, input,
                                                   driver::cu_parse, Some(outputs));
-            let mut crate = crate;
+            let mut crate = crate.unwrap();
 
             debug!("About to inject link_meta info...");
             // Inject the inferred link_meta info if it's not already there