fallout from separating impl-items from impls

Basically adding `visit_impl_item` in various places and so forth.
This commit is contained in:
Niko Matsakis 2016-11-04 18:20:15 -04:00
parent b889259e2b
commit 3fd67eba87
30 changed files with 233 additions and 70 deletions

View file

@ -502,10 +502,13 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
om.traits.push(t);
},
hir::ItemImpl(unsafety, polarity, ref gen, ref tr, ref ty, ref items) => {
hir::ItemImpl(unsafety, polarity, ref gen, ref tr, ref ty, ref item_ids) => {
// Don't duplicate impls when inlining, we'll pick them up
// regardless of where they're located.
if !self.inlining {
let items = item_ids.iter()
.map(|&id| self.cx.map.impl_item(id).clone())
.collect();
let i = Impl {
unsafety: unsafety,
polarity: polarity,