1
Fork 0

Do not pass hir::Crate to lints.

This commit is contained in:
Camille GILLOT 2021-09-12 11:58:27 +02:00
parent abc57f63ad
commit faa7d4221b
17 changed files with 32 additions and 33 deletions

View file

@ -164,7 +164,7 @@ impl<'hir> Map<'hir> {
}
}
crate fn items(&self) -> impl Iterator<Item = &'hir Item<'hir>> + 'hir {
pub fn items(&self) -> impl Iterator<Item = &'hir Item<'hir>> + 'hir {
let krate = self.krate();
krate.owners.iter().filter_map(|owner| match owner.as_ref()? {
OwnerNode::Item(item) => Some(*item),