From 8166b59c74f423fbd9b5f1f21f63b9c1f972c9cc Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 1 Jan 2018 11:56:07 +0530 Subject: [PATCH] Use correct item for links in modules --- src/librustdoc/html/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 5dea05cedbe..832c0cc17d1 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -2160,10 +2160,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context, stab_docs = stab_docs, docs = if cx.render_type == RenderType::Hoedown { format!("{}", - shorter(Some(&Markdown(doc_value, &item.links(), + shorter(Some(&Markdown(doc_value, &myitem.links(), RenderType::Hoedown).to_string()))) } else { - format!("{}", MarkdownSummaryLine(doc_value, &item.links())) + format!("{}", MarkdownSummaryLine(doc_value, &myitem.links())) }, class = myitem.type_(), stab = myitem.stability_class().unwrap_or("".to_string()),