diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-06-14 16:34:32 -0500 |
|---|---|---|
| committer | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-06-14 17:47:35 -0500 |
| commit | 16cfa5c2efb44987eafbacceeb53099ee0ef8ad6 (patch) | |
| tree | 7f3bf4cf18574d2805afaebd12e7e8e0c2dbe7c2 | |
| parent | 122b5b47c2d8387a5095c3cac50fe11c9aaf1369 (diff) | |
| download | rust-16cfa5c2efb44987eafbacceeb53099ee0ef8ad6.tar.gz rust-16cfa5c2efb44987eafbacceeb53099ee0ef8ad6.zip | |
rustdoc: discard struct ctors from imports
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs index f05cbbfd7a2..44b41439511 100644 --- a/src/librustdoc/visit_ast.rs +++ b/src/librustdoc/visit_ast.rs @@ -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); |
