rustdoc: discard struct ctors from imports

This commit is contained in:
QuietMisdreavus 2018-06-14 16:34:32 -05:00
parent 122b5b47c2
commit 16cfa5c2ef
1 changed files with 5 additions and 0 deletions

View File

@ -365,6 +365,11 @@ impl<'a, 'tcx, 'rcx> RustdocVisitor<'a, 'tcx, 'rcx> {
});
true
}
hir_map::NodeStructCtor(_) if !glob => {
// struct constructors always show up alongside their struct definitions, we've
// already processed that so just discard this
true
}
_ => false,
};
self.view_item_stack.remove(&def_node_id);