]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to rustc 1.32.0-nightly (4a45578bc 2018-12-07)
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 8 Dec 2018 09:48:35 +0000 (10:48 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 8 Dec 2018 09:48:35 +0000 (10:48 +0100)
src/main_shim.rs

index 5b61ef24cf2e571c64cd04621032d500f7a98ba5..aec03838ce9e592ff9aba6e735be3d51b03f422d 100644 (file)
@@ -11,7 +11,7 @@ pub fn maybe_create_entry_wrapper<'a, 'tcx: 'a>(
 
     let (main_def_id, use_start_lang_item) = match *tcx.sess.entry_fn.borrow() {
         Some((id, _, entry_ty)) => (
-            tcx.hir.local_def_id(id),
+            tcx.hir().local_def_id(id),
             match entry_ty {
                 EntryFnType::Main => true,
                 EntryFnType::Start => false,