Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics

This commit is contained in:
Oli Scherer 2023-10-26 11:36:49 +00:00
parent dd2dee1c70
commit cd4c352fb4
36 changed files with 362 additions and 285 deletions

View file

@ -75,7 +75,7 @@ pub use check::check_abi;
use std::num::NonZeroU32;
use check::check_mod_item_types;
use entry::check_for_entry_fn;
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_errors::ErrorGuaranteed;
use rustc_errors::{pluralize, struct_span_err, Diagnostic, DiagnosticBuilder};
@ -110,7 +110,7 @@ pub fn provide(providers: &mut Providers) {
wfcheck::provide(providers);
*providers = Providers {
adt_destructor,
check_mod_item_types,
check_for_entry_fn,
region_scope_tree,
collect_return_position_impl_trait_in_trait_tys,
compare_impl_const: compare_impl_item::compare_impl_const_raw,