Use () for entry_fn.
This commit is contained in:
parent
601453a2ac
commit
829a9d33a9
13 changed files with 19 additions and 27 deletions
|
@ -15,7 +15,7 @@ pub(crate) fn maybe_create_entry_wrapper(
|
|||
unwind_context: &mut UnwindContext,
|
||||
is_jit: bool,
|
||||
) {
|
||||
let (main_def_id, is_main_fn) = match tcx.entry_fn(LOCAL_CRATE) {
|
||||
let (main_def_id, is_main_fn) = match tcx.entry_fn(()) {
|
||||
Some((def_id, entry_ty)) => (
|
||||
def_id,
|
||||
match entry_ty {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue