diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main_shim.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_shim.rs b/src/main_shim.rs index d504024a335..d1958c5f96b 100644 --- a/src/main_shim.rs +++ b/src/main_shim.rs @@ -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 { |
