Commit missing change for rustup

This commit is contained in:
bjorn3 2020-04-30 16:12:33 +02:00
parent 12c92a32f6
commit 9fb167e711

View File

@ -8,7 +8,7 @@ pub(crate) fn maybe_create_entry_wrapper(tcx: TyCtxt<'_>, module: &mut Module<im
let (main_def_id, use_start_lang_item) = match tcx.entry_fn(LOCAL_CRATE) {
Some((def_id, entry_ty)) => (
def_id,
def_id.to_def_id(),
match entry_ty {
EntryFnType::Main => true,
EntryFnType::Start => false,