about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-05-11 12:00:59 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-05-12 13:58:42 +0200
commit3a869ca88c847c8e004a3d4f74247c8378cfa11a (patch)
tree433b83dd5300fc2ec46afa56d357e5de5a86c478
parentf22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae (diff)
downloadrust-3a869ca88c847c8e004a3d4f74247c8378cfa11a.tar.gz
rust-3a869ca88c847c8e004a3d4f74247c8378cfa11a.zip
Use () for entry_fn.
-rw-r--r--src/main_shim.rs2
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 {