}
if let ItemKind::Mod { .. } = item.kind {
- self.is_exported.push(cx.effective_visibilities.is_exported(item.owner_id.def_id));
+ self.is_exported
+ .push(cx.effective_visibilities.is_exported(item.owner_id.def_id));
}
}
fn is_not_macro_export<'tcx>(item: &'tcx Item<'tcx>) -> bool {
if let ItemKind::Use(path, _) = item.kind {
- if let Res::Def(DefKind::Macro(MacroKind::Bang), _) = path.res {
+ if path.res.iter().all(|res| matches!(res, Res::Def(DefKind::Macro(MacroKind::Bang), _))) {
return false;
}
} else if let ItemKind::Macro(..) = item.kind {