From 612081a78d136c7ad0b63dd3454ceb727d0e69c5 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Thu, 27 Jul 2017 19:21:10 -0500 Subject: [PATCH] print associated types in traits "implementors" section --- src/librustdoc/html/render.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index e89bd7aae9bf1..60735fbe73c6e 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -2235,6 +2235,13 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item, _ => false, }; fmt_impl_for_trait_page(&implementor.impl_, w, use_absolute)?; + for it in &implementor.impl_.items { + if let clean::TypedefItem(ref tydef, _) = it.inner { + write!(w, " ")?; + assoc_type(w, it, &vec![], Some(&tydef.type_), AssocItemLink::Anchor(None))?; + write!(w, ";")?; + } + } writeln!(w, "")?; } }