1
Fork 0

rename items -> free_items

This commit is contained in:
Ralf Jung 2024-03-20 23:52:26 +01:00
parent 1e926b50d7
commit 0dd8a83e5e
9 changed files with 21 additions and 19 deletions

View file

@ -1696,7 +1696,7 @@ fn check_mod_privacy(tcx: TyCtxt<'_>, module_def_id: LocalModDefId) {
}
}
for id in module.items() {
for id in module.free_items() {
if let ItemKind::Impl(i) = tcx.hir().item(id).kind {
if let Some(item) = i.of_trait {
let trait_ref = tcx.impl_trait_ref(id.owner_id.def_id).unwrap();