diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 12:00:59 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-12 13:58:42 +0200 |
| commit | 3a869ca88c847c8e004a3d4f74247c8378cfa11a (patch) | |
| tree | 433b83dd5300fc2ec46afa56d357e5de5a86c478 | |
| parent | f22ab98d4c2dee3e0d569e06d99dbfdaa6cc52ae (diff) | |
| download | rust-3a869ca88c847c8e004a3d4f74247c8378cfa11a.tar.gz rust-3a869ca88c847c8e004a3d4f74247c8378cfa11a.zip | |
Use () for entry_fn.
| -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 { |
