]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/typeck/mod.rs
auto merge of #13301 : erickt/rust/remove-refcell-get, r=huonw
[rust.git] / src / librustc / middle / typeck / mod.rs
index d635a9bdec41e03ae058fa06efb55ceb074c691e..446d2ff055cca90fd819f53f7e3819fac87537ec 100644 (file)
@@ -431,7 +431,7 @@ fn check_start_fn_ty(ccx: &CrateCtxt,
 fn check_for_entry_fn(ccx: &CrateCtxt) {
     let tcx = ccx.tcx;
     if !tcx.sess.building_library.get() {
-        match tcx.sess.entry_fn.get() {
+        match *tcx.sess.entry_fn.borrow() {
           Some((id, sp)) => match tcx.sess.entry_type.get() {
               Some(session::EntryMain) => check_main_fn_ty(ccx, id, sp),
               Some(session::EntryStart) => check_start_fn_ty(ccx, id, sp),