]> git.lizzy.rs Git - rust.git/commitdiff
Use correct item for links in modules
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 1 Jan 2018 06:26:07 +0000 (11:56 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Mon, 22 Jan 2018 09:54:28 +0000 (15:24 +0530)
src/librustdoc/html/render.rs

index 5dea05cedbeaf2d53536bfc3e3e7bb0cab7c5219..832c0cc17d119070f68f3f9ab01e1db206808a32 100644 (file)
@@ -2160,10 +2160,10 @@ fn cmp(i1: &clean::Item, i2: &clean::Item, idx1: usize, idx2: usize) -> Ordering
                        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()),