Sync from rust 7a0f1781d0
This commit is contained in:
commit
3b975ee92d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user