diff --git a/src/main_shim.rs b/src/main_shim.rs index 5b61ef24cf2..aec03838ce9 100644 --- a/src/main_shim.rs +++ b/src/main_shim.rs @@ -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,