diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-26 11:36:49 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-01-02 14:17:56 +0000 |
| commit | cd4c352fb47152e1536b53ac6bc67b6ba562cf4e (patch) | |
| tree | 328569db5119648871b6789b854c10ecc25809ca /compiler/rustc_hir_analysis/src/check/entry.rs | |
| parent | dd2dee1c700e7b8e83490bd70f1fe38417c2a7b9 (diff) | |
| download | rust-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.rs | 2 |
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), |
