about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/check/entry.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-26 11:36:49 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-01-02 14:17:56 +0000
commitcd4c352fb47152e1536b53ac6bc67b6ba562cf4e (patch)
tree328569db5119648871b6789b854c10ecc25809ca /compiler/rustc_hir_analysis/src/check/entry.rs
parentdd2dee1c700e7b8e83490bd70f1fe38417c2a7b9 (diff)
downloadrust-cd4c352fb47152e1536b53ac6bc67b6ba562cf4e.tar.gz
rust-cd4c352fb47152e1536b53ac6bc67b6ba562cf4e.zip
Reorder `check_item_type` diagnostics so they occur next to the corresponding `check_well_formed` diagnostics
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/entry.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/check/entry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/entry.rs b/compiler/rustc_hir_analysis/src/check/entry.rs
index 649ac6c5aeb..81d3bf2e451 100644
--- a/compiler/rustc_hir_analysis/src/check/entry.rs
+++ b/compiler/rustc_hir_analysis/src/check/entry.rs
@@ -14,7 +14,7 @@ use std::ops::Not;
 use super::check_function_signature;
 use crate::errors;
 
-pub(crate) fn check_for_entry_fn(tcx: TyCtxt<'_>) {
+pub(crate) fn check_for_entry_fn(tcx: TyCtxt<'_>, (): ()) {
     match tcx.entry_fn(()) {
         Some((def_id, EntryFnType::Main { .. })) => check_main_fn_ty(tcx, def_id),
         Some((def_id, EntryFnType::Start)) => check_start_fn_ty(tcx, def_id),