rename items -> free_items
This commit is contained in:
parent
1e926b50d7
commit
0dd8a83e5e
9 changed files with 21 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue