Skip to content

Commit 3b975ee

Browse files
committed
Sync from rust 7a0f178
2 parents 6d30315 + 0a1b87c commit 3b975ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main_shim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(crate) fn maybe_create_entry_wrapper(
1717
) {
1818
let (main_def_id, is_main_fn) = match tcx.entry_fn(LOCAL_CRATE) {
1919
Some((def_id, entry_ty)) => (
20-
def_id.to_def_id(),
20+
def_id,
2121
match entry_ty {
2222
EntryFnType::Main => true,
2323
EntryFnType::Start => false,

0 commit comments

Comments
 (0)