Skip to content

Commit 3a869ca

Browse files
committed
Use () for entry_fn.
1 parent f22ab98 commit 3a869ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main_shim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub(crate) fn maybe_create_entry_wrapper(
1515
unwind_context: &mut UnwindContext,
1616
is_jit: bool,
1717
) {
18-
let (main_def_id, is_main_fn) = match tcx.entry_fn(LOCAL_CRATE) {
18+
let (main_def_id, is_main_fn) = match tcx.entry_fn(()) {
1919
Some((def_id, entry_ty)) => (
2020
def_id,
2121
match entry_ty {

0 commit comments

Comments
 (0)