We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422dd3b commit d88dfd2Copy full SHA for d88dfd2
compiler/rustc_typeck/src/check/check.rs
@@ -1451,7 +1451,11 @@ pub(super) fn check_type_params_are_used<'tcx>(
1451
}
1452
1453
pub(super) fn check_mod_item_types(tcx: TyCtxt<'_>, module_def_id: LocalDefId) {
1454
- tcx.hir().visit_item_likes_in_module(module_def_id, &mut CheckItemTypesVisitor { tcx });
+ let module = tcx.hir_module_items(module_def_id);
1455
+ for id in module.items() {
1456
+ let item = tcx.hir().item(id);
1457
+ check_item_type(tcx, item)
1458
+ }
1459
1460
1461
pub(super) use wfcheck::check_item_well_formed;
0 commit comments