Skip to content

Commit

Permalink
rustdoc: discard struct ctors from imports
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Jun 14, 2018
1 parent 122b5b4 commit 16cfa5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustdoc/visit_ast.rs
Expand Up @@ -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);
Expand Down

0 comments on commit 16cfa5c

Please sign in to comment.