}
}
- om.imports.push(Import {
- name,
- id: item.hir_id,
- vis: &item.vis,
- attrs: &item.attrs,
- path,
- glob: is_glob,
- span: item.span,
- });
+ om.items.push((item, renamed))
}
hir::ItemKind::Mod(ref m) => {
om.mods.push(self.visit_mod_contents(
om.items.push((item, renamed));
}
}
- hir::ItemKind::Impl { ref of_trait, .. } => {
+ hir::ItemKind::Impl(ref impl_) => {
// Don't duplicate impls when inlining or if it's implementing a trait, we'll pick
// them up regardless of where they're located.
- if !self.inlining && of_trait.is_none() {
+ if !self.inlining && impl_.of_trait.is_none() {
om.items.push((item, None));
}
}