This commit is contained in:
bjorn3 2021-05-04 13:38:28 +02:00
commit 3b975ee92d

View File

@ -17,7 +17,7 @@ pub(crate) fn maybe_create_entry_wrapper(
) {
let (main_def_id, is_main_fn) = match tcx.entry_fn(LOCAL_CRATE) {
Some((def_id, entry_ty)) => (
def_id.to_def_id(),
def_id,
match entry_ty {
EntryFnType::Main => true,
EntryFnType::Start => false,